Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 10:35 PM
Give me flow for a variable which is hidden in the catalog item, when manager approves only then the variable should be visible in the portal. Can anyone help me with this?
We have created a variable with type URL. This is made hidden in the catalog item. We need to write a flow to make is visible only when manager approves it. We tried doing it with field values but not getting set variable in action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 10:58 PM
This is UI change. You have to use client script to show and hide the field based on the stage of your RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 11:20 PM
Can you give me the script??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 11:34 PM
you can use onLoad client script on sc_req_item table along with display business rule on sc_req_item table
Check in the business rule if RITM is approved and set g_scratchpad variable
Then use that scratchpad variable in client script and show/hide the variable using this syntax
g_form.setDisplay('variables.variableName', true);
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-17-2025 12:03 AM
In catalog item we made variables hidden which is variable summarize which is made uncheck. In requested item if status changes from requested to approved it should automatically display the variable in service portal so what can we do now.