Catalog UI Policy: Show or hide a group of questions

mike555
Tera Expert

Is it possible to show or hide a large group of questions with Cartalog UI policy without specifying each individually.

I tried putting the group in a Container and it did not seem to work. I also tried using a Variable Set, but it does not seem to work either.

What is the best way?

1 ACCEPTED SOLUTION

mike555
Tera Expert

I contacted ServiceNow support about this, who recommended the suggestions in this article

https://community.servicenow.com/community?id=community_question&sys_id=7f6834aedbfaab004abd5583ca96...

There is no out-of-the-box way to do it.

View solution in original post

4 REPLIES 4

dianemiro
Kilo Sage

This should work if you put the variables inside a variable set and on your UI policy action, choose the variable set name to hide all of the variables under the variable set. Hope this helps!

Please Mark ✅ Correct or Helpful, if applicable. Thank you!

Regards,
Diane

mike555
Tera Expert

No, it does not work.  I have double and triple checked it and it does not work.

It does not work with Catalog Client Script or Catalog UI Policy.

mike555
Tera Expert

Does it not work if one or more of the Variables in the Variable Set are mandatory?

mike555
Tera Expert

I contacted ServiceNow support about this, who recommended the suggestions in this article

https://community.servicenow.com/community?id=community_question&sys_id=7f6834aedbfaab004abd5583ca96...

There is no out-of-the-box way to do it.