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-15-2024 07:44 AM
you have the option to hide the variable set when selection the actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 09:46 AM
Hello @aditya174
Please refer to detailed solution shared in this thread. It is tested in my PDI and it worked for me. Hope this helps.
"If you found my answer helpful, please like and mark it as the "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar