Hide label type variable which has check boxes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 10:12 AM - edited 03-14-2023 10:14 AM
Hello All,
I have a "Label" type variable below which I have 3 checkboxes as shown below
And I am trying to control the visibilty via Catalog client script as shown below
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
g_form.setVisible('demo_variable_set', false);
//g_form.setDisplay('Demo_variable_set.dev_roles', false);
//
return;
}
g_form.setVisible('demo_variable_set', true);
}
else{
///
}
//g_form.setValue('variable name',answer);
}
}
However, I am not able to hide the label variable it appears as shown below
I read from community and a KB that it cannot be hidden.
But I need help with hiding the variable or any possible workaround. Please
Entire variable set name - g_form.setVisible('demo_variable_set', false);
TIA
@Allen Andreas @priyasunku @SatyakiBose @Mark Roethof @BharathChintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 11:11 PM
I want to hide the entire variable set based on a condition which includes calling a script include.
So I went with client script. In such case the label type variable (Development) is not getting hidden as it contains 3 checkboxes. With UI policy the entire variable set can be set to visible true/false but it does not satisfy the condition so I had to go for client script.
Need help in hiding the label type variable "Development" via client script which I have provided above