- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2025 09:48 PM
I have a requirement to change the process flow states appear based on type. If type = test then show draft, approved, closed. else Draft, Initiated, Closed. How can I get this working? I can hide unhide the states in the state drop down but the process flow on the top doesnt change.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2025 10:00 PM
You can show them based on condition you configure.
If you don't want to use that then you need to use onLoad client script and DOM manipulation to handle that.
I shared solution for this earlier, please enhance
Hide and show process flow based on the category.
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-14-2025 10:00 PM
You can show them based on condition you configure.
If you don't want to use that then you need to use onLoad client script and DOM manipulation to handle that.
I shared solution for this earlier, please enhance
Hide and show process flow based on the category.
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-14-2025 10:01 PM
To dynamically change the process flow formatter stages based on the value of a field like type, you'll need to configure conditional logic within the Flow Formatter [sys_process_flow] records themselves. Here's how you can approach it
Create a list collector variable (choose_assgn_grp) on the catalog item form referencing the Groups (sys_user_group) table and allow multiple selection.
Use Flow Designer to create a flow that triggers when a catalog request is submitted.
Within the flow, add a For Each loop to iterate over the selected groups in the choose_assgn_grp variable.
For every group in the loop, use the Create Catalog Task action and dynamically set the Assignment Group field to the current group.
Customize the task details (such as short description and instructions) for clarity and tracking.
Publish the flow and test by submitting a request with one or more groups selected to ensure the correct number of tasks are created and assigned appropriately.
Use client-side logic or scripting if needed to enhance form behavior or manage complex variable conditions.