Hide all variables on RITM/SC TASK form based on condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 03:51 PM
Is there a way to hide all the variables on the ritm/sc task form similar to g_form.setVariablesReadOnly(true)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 04:37 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 05:00 PM
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
g_form.setVisible('on_hold', false);
Does that answer your question?