Not able to hide the variable set of a catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 07:13 AM
Hi Im trying to hide my variable set Create new group based on the selection of the request type:
Using the following code:
function onChange(control, oldValue, newValue, isLoading) {
// if (isLoading || newValue == '') {
// return;
// }
var type = g_form.getValue('request_type');
if(type=='create'){
//g_form.addInfoMessage('test '+type);
g_form.setVisible('Create_New_Group',false);
g_form.setDisplay('Create_New_Group',false);
g_form.setVisible('create_new_group',false);
g_form.setDisplay('create_new_group',false);
}
//Type appropriate comment here, and begin script below
}
But it is no hiding the variable set, I've also checked there are no containers in the variable set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 07:37 AM
If you can share a screenshot if the request item it might be useful.
Have you tried setting up catalog UI Policy?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 08:38 AM
Yes i did try the Ui Policy and Catalog client script from above still it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 07:42 AM
Hi @aditya174 ,
You can use the catalog UI Policy to achieve this with no code. Find the below screenshots might help you
Add the filter condition for catalog with variable name:
Add the variables which you want to hide from the from under Catalog UI policy actions
Thanks,
Pradeep
Regards,
Pradeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 08:38 AM
There are 50 variables in the set.