Catalog item variable set still showing after UI policy creation

mgraden
Mega Contributor

I've created a variable set for fields that are only supposed to be visible for the various SC tasks of a catalog item. The set currently only has two fields. I've created a UI policy to hide the variable set, but those two fields are still visible when I check the catalog item on the portal but are not on the RITM. "Applies on a Catalog Item view" is set to true. What could I be missing? 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

Are either of the variables in the variable set mandatory - either in their definition, or made mandatory or visible via another UI Policy or Client Script?

View solution in original post

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

Are either of the variables in the variable set mandatory - either in their definition, or made mandatory or visible via another UI Policy or Client Script?

That was the issue. The two variables were set to mandatory within their definition. Once I removed this they no longer show on the portal. These are supposed to be mandatory when displayed within the SC task. I have created a UI policy to make these fields mandatory within the SC task instead.

Ajay_Chavan
Kilo Sage

@mgraden if i understand it right, you want it to be hide/show on catalog task

then can you check the flag: Applies on catalog task

also if this does not resolve the issue refer below resorces:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0715384
https://www.servicenow.com/community/itsm-forum/how-to-hide-variable-set-using-ui-policy/m-p/2475757
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0830650

https://www.servicenow.com/community/developer-forum/show-hide-variable-set-in-catalog-item/m-p/2025...

Glad I could help! If this solved your issue, please mark it as Helpful and Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****