Script in flow designer if condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2025 10:31 PM
Hi community,
The variable I have selected in the below condition is select box whose choices are coming from a catalog client script on the form -> hence not showing in the select box in the flow. This could have been easily handles in workflow using script. But how to do it in Flow Designer!
Kindly assist me on this 🙂
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2025 11:19 PM - edited ‎07-24-2025 11:20 PM
Can you attach the screenshot as image to your question? I tried several browsers, so I think the new layout of the Community posts is messing something up. I only see a square with a triangle in it.
Without the visual to confirm you question: you can also use 'flow variables' and script in them to get the output you need.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2025 11:30 PM
Same for me as well.. Not able to see the image. Looks lile some glitch in community posts. Have seen same behaviour for other posts as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2025 12:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2025 01:42 AM
since you said choices are coming from client script and if they are not in question_choices table for your variable then you can't select that in FLOW condition.
Not a good practice to add choices dynamically in select box variable.
Recommendation: Add all the choices in select box and then add/remove the options using g_form.addOption() and g_form.removeOption() method
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