Hide all variables on RITM/SC TASK form based on condition

samadam
Kilo Sage

Is there a way to hide all the variables on the ritm/sc task form similar to g_form.setVariablesReadOnly(true)

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

If you add a variable type of Container Start (you don't have to display a title, so the section/container could be unseen) and a variable type of Container End, then you can select the Container Start variable name in a Catalog UI Policy Action to set visibility to false.  Any variables ordered greater than Container Start and less than Container End will be affected.  If you have any mandatory variables, or variable sets within this ordered range that will prevent all variables in the container from being hidden.  Any variable sets need to be a separate Catalog UI Policy Action.

aaron47
Mega Guru

Hello @samadam 

 

Looks like you want this for a client script (on_load).

 

Have you tried this:

g_form.setVisible('variable_name', false);

 

You can find out the variable name by right clicking on it.

 

Example

aaron47_0-1701133108569.png

 

g_form.setVisible('on_hold', false);

 

 

Does that answer your question?