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-27-2025 08:06 PM
Thank you for marking my response as helpful.
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
3 weeks ago
Hope you are doing good.
Did my reply answer your question?
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
07-24-2025 11:32 PM
There is some issue going on in community that images are not visible.
please add it using browse feature and add as attachment to post
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
07-25-2025 12:07 AM
I replied Mark with the image. Not able to add here!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 01:10 AM
Hello @nirwan_ritik ,
Just a quick question before suggesting something — could you let me know approximately how many total choices you have for that select box variable across all conditions (regardless of how they’re shown/hidden using the client script)?
The reason I’m asking is — if the total number isn’t too large (say around 5–10), then one possible workaround is to add all those choices statically under the select box variable first. Once that’s done, you can continue to filter/show them dynamically on the form using your client script (using g_form.removeOption() or similar logic).
This way, the Flow Designer will be able to recognize all the possible values upfront, and you’ll be able to use them in your "If" condition without any issue.
Let me know if that makes sense or if your use case involves too many values to manage like this .............
🔹 Please mark ✅ Correct if this solves your query, and 👍 Helpful if you found the response valuable.
Best regards,
Aniket Chavan
🏆 ServiceNow MVP 2025 | 🌟 ServiceNow Rising Star 2024