Hide checkboxes based on two selectbox variables

Community Alums
Not applicable

Hi,

I have a requirement where if variable 1 value is None and variable 2 value is None then the checkboxes shouldn't be seen onLoad.

I have written the catalog client script, but i couldn't hide the checkboxes. Kindly help.

 

catalog item.PNGcatalog client script.PNGESC.PNG

Regards

Suman P.

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi @Community Alums,

I would suggest to create Catalog UI policy and based on environment and request type variable value is none.

You have to hide the required check boxes.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Community Alums
Not applicable

Hi @Sagar Pagar ,

I can't do it. I have more options under drop down to select to show only particular checkboxes. That will create a Return if false to trigger and it will mess with other conditions. Please help with the Catalog Client Script.

Regards

Suman P.

sindhu43
Tera Contributor

Hi,

Check if selection required  is enabled for your checkbox variables.

If it is enabled then make it false and add check.

 

Hope this helps you.

Community Alums
Not applicable

Dispute User Roles was a mandatory field. I removed it not be mandatory, it started working fine now.