UI Policy condition [<Field name>] [is not] [-- None --] evaluates to true?

harinalamalapu
Giga Expert

I created a UI Policy with condition "Backout type is not --None--" or "Backout type is not Automatic" to display 'Backout time' field. But the 'Backout time' field is getting displayed when the Backout time is --None--. Is this a default ServiceNow UI Policy behavior?

*Note - I am currently using Geneva.

1 ACCEPTED SOLUTION

You need to put them as "AND" instead of or...



Because if the Back-out type is None, it isnt "manual code 2".. so it gets true...



//Göran


View solution in original post

13 REPLIES 13

harinalamalapu
Giga Expert

Yes you are right Goran. That fixed it. How silly, but very good catch. Thank you.


No problem 😃 Sometimes you get tunnel vision and a pair of fresh eyes will help 😃 And... I done the exact same mistake myself not so long ago



//Göran


btw.. you could also use "Is not one of" instead of making two conditions with "AND". Not sure if --NONE-- is a choice there thou... just a thought without checking that.



//Göran


harinalamalapu
Giga Expert

I verified and found that --NONE-- is not a choice in the drop down for "Is not one of" option.