How do I troubleshoot a Catalog UI Policy that is only show/hiding certain variables in Policy

Dan Alexander1
Mega Expert

I'm working on a basic catalog request form, which has a few simple UI policies that show/hide fields based on previous selections going down the form. One particular field has 6 choices. The UI Policy created says If this field is one of these 3 choices .. At which point I have the policy hiding 5 fields, reverse if false. My problem is that on load, the field that drives the policy is set to None -- yet 2 of the 5 fields show up still. If I flip the main field to one of the 3 choices, they all show up again. If I flip it to NOT one of the 3 choices, the form only hides 4 of the 5 fields. So very strange, and yet I can find no difference that would cause this. Any thoughts?!

 

Things I've tried already:

- Disabled all other UI policies on the item
- Started this process using variable sets, then went to just straight variables -- did not fix the issue.
- Other UI policies on the form work when enabled.

 

We are using the Calgary release.

1 ACCEPTED SOLUTION

Dan Alexander1
Mega Expert

This has been fixed. I spoke with one of our consultants and the issue was around the few fields that were being set as mandatory on the variable level instead of the UI Policy level. They refused to hide because they were mandatory.


View solution in original post

13 REPLIES 13

So using SetDisplay brings back the original issue -- so strange.


Bhavesh Jain1
Giga Guru

How about trying the Debug UI policies module of Servicenow ?


I did check out the debug console, but having a hard time deciphering it. Happy to post the debug code if someone else can read it better than I


Dan Alexander1
Mega Expert

This has been fixed. I spoke with one of our consultants and the issue was around the few fields that were being set as mandatory on the variable level instead of the UI Policy level. They refused to hide because they were mandatory.