Flow Designer

SnehaK320710003
Tera Contributor

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.

7 REPLIES 7

Pranesh072
Mega Sage
Mega Sage

This is UI change. You have to use client script to show and hide the field based on the stage of your RITM.

SnehaK320710003
Tera Contributor

Can you give me the script??

Ankur Bawiskar
Tera Patron
Tera Patron

@SnehaK320710003 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.