Variable set is visible on RITM when I have used UI policy to disable it on RITM and catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Team ,
I have created an maintain item , where I have used an variable type (yes/No), where if the value is yes the variable set should populated on portal and other wise the variable set won't populate on portal or on RITM . However used an UI policy to achieve that , but it's not working , on RITM . EVEN when selected NO the variable set is populating on RITM , tried with advanced script option on ui policy not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
hey @sonalpriyanka95
follow this :
1. Use “Visible If” condition on Variable Set (Preferred for Portal + Partial RITM control)
Instead of relying only on UI Policy:
Open your Variable Set
Configure Visible if condition
Example:
your_yes_no_variable == true
This ensures better consistency during request time and improves behavior post-submission.
2. Handle RITM separately using UI Policy on sc_req_item
To control visibility on RITM:
Create a UI Policy
Table: sc_req_item
Condition:
Variables.your_variable == false
Add UI Policy Actions to:
Hide specific variables (if needed)
Note: Entire Variable Set hiding is limited; you may need to target variables individually.
3. Use Catalog Client Script for better control (Portal only)
For dynamic behavior during request:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue === '') {
return;
}
if (newValue == 'yes') {
g_form.setDisplay('variable_set_name', true);
} else {
g_form.setDisplay('variable_set_name', false);
}
}
*************************************************************************************************************************************
If this response helps, please mark it as Accept as Solution and Helpful.
Doing so helps others in the community and encourages me to keep contributing.
Regards
Vaishali Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
53m ago
Hi @sonalpriyanka95 ,
Can you share the screenshots?
