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-21-2025 02:35 AM
then are you sure the 2nd variable loads all the options by the time the step runs?
try to give some extra timeout for that Set Variable Values (SP) step
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-21-2025 10:08 PM - edited 05-21-2025 10:12 PM
In the steps where I am setting the variable value, it is successful.
I have already given extra timeout.
I am keeping the Client Test Runner open to verify the field value. However, I can see that the dropdown is not being selected. Since this field is mandatory, I am unable to submit the order guide.
22:00:08 | Set Variable Values (SP) | Successfully set field ' |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 10:24 PM
Sorry but you will have to investigate and debug further
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader