How to hide checkbox variables from RITM/Task form which are empty or false but still shows up?

Mishu
Tera Expert

I have a few checkbox variables with multiple options which show on RITM form and Task form, but i want to make them hidden when there is no value selected in them or we can say when its empty.

 

Mishu_0-1693845331778.png

 

Please suggest how to achieve it

8 REPLIES 8

Siva Jyothi M
Mega Sage

Hi @Mishu,

 

You can create a UI policy specific to your catalog item and check the Applies on Requested Item and Applies on Catalog Task checkbox. In this UI Policy, add UI Actions for all the variables and set Visible to False. This would hide all the  variables at the RITM and Task level.

 

Also, have a look at the below blog if it helps!

https://www.servicenow.com/community/developer-blog/hide-empty-variables-on-ritm-and-task-record/ba-...

 

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi.

Hi Siva,

 

I already referred to this article, but it doesn't work for the checkboxes field.

Also, my variables are in variable set, Let me try with UI Policy in that 

@Siva Jyothi M  --- UI Policy is not working either in this case.

I wrote a UI Policy with the condition --> choice value is False then that choice visibilty is false...it dint work

@Mishu,

 

In Variable sets, all variables will show in the columns irrespective of the scripts or conditions. Are you trying to hide them inside the MRVS?

 

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi.