The CreatorCon Call for Content is officially open! Get started here.

Not able to hide the variable set of a catalog item

aditya174
Tera Guru

Hi Im trying to hide my variable set Create new group based on the selection of the request type:

aditya174_0-1731424409231.png

aditya174_1-1731424413895.png

aditya174_2-1731424417365.png

 

 

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.

6 REPLIES 6

you have the option to hide the variable set when selection the actions 

Juhi Poddar
Kilo Patron
Kilo Patron

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