Set Variable Values (SP) is not setting the value on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 10:07 PM
I am having an order guide.
I am setting a field value with the 'Set Variable Values (SP) ' step. The field is a dropdown list.
While running the test, it successfully sets the value, i.e., the step executed successfully, but it's not in the field while checking in the Client Test Runner.
I want to set the value with Set Component Values (Custom UI) step,, but the field is not getting retrieved with Custom UI.
Field type- Custom component <select2>(Showing in manual page inspector)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 10:28 PM
if it's a variable then Set Variable Values (SP) should work
Why are you using Custom UI step?
share the test steps screenshots and also the test results?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:16 PM - edited 05-20-2025 11:21 PM
The yellow marked is the field , the ATF step runs successfully, but in the form its not setting the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:48 PM
is that 2nd variable dependent on some other variable?
Also any client script is adding/removing options from that 2nd variable based on some logic?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:57 PM
Yes the 2nd variable is dependent on the variable that I have set in the previous step.