Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Input form screen is not displaying updated values

Max Nowak
Kilo Sage

Hi,

I've configured a function with an action item and an input form screen to accept user input. I added inputs to this input form screen, and configured variables to auto-fill the inputs with the current values of the record. The input screen opens, displays the current values, but if I change a value, it doesn't reflect the change - it still displays the current value of the record.

 

Example:

The input form screen contains two inputs, "Short description" and "Assignment group". Pagination is disabled.

 

inputScrn.jpg

 As you can see, the current assignment group is "Göteborg". I can now click on that field, and select a new assignment group:

 

selectAG.jpg

For example, I could select "Seoul" as assignment group. Here's the problem though, if I select anything, it takes me back to the input screen (first screenshot), and doesn't show my changes. The assignment group will still display as Göteborg, even though I've selected something else. Basically, after selecting Seoul, it looks exactly like in my first screenshot, with Göteborg as assignment group.

 

But: Seoul is selected. If I click on the assignment group field again, I can see "Selected: Seoul" at the top, and if I click on submit, it will actually change the assignment group to Seoul - it just doesn't show this in my input form screen. No matter what I do, the input form screen will always show the value as it is on the current record - Göteborg.

 

This isn't a problem if pagination is turned on and every field / input has their own page, only if I want to have multiple inputs on one page. It also isn't affecting fields that can be edited inline.

 

I've seen videos on input form screens, and the presenter doesn't seem to have this issue. Did I forget some sort of configuration that tells the input form screen to display the updated selected value, instead of the current value on the record?

 

Thanks in advance for your help,

Max

5 REPLIES 5

navy
Tera Contributor

I have a problem with this solution as the [Default value type] set to [Source field] results in failure of every update. When it is set to [manual] or [none] then it works correctly. 

 

I want the UI parameter input field to open with existing value but I'm unable to do that.