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

Hi Srikanth,



Any idea, why don't I have the option of is not EMPTY in the UI Policy condition drop down for the 'back-out type' field ? I am able to see this option for few other drop down fields on my Change Request form.



Thanks,


Hari


ghsrikanth
Tera Guru

Were you not able to see this option?



Screen Shot 2016-03-16 at 12.14.59 AM.png


harinalamalapu
Giga Expert

Yes, I don't find that option. Here is my screenshot:



find_real_file.png


ghsrikanth
Tera Guru

Hi Hari,



In dictionary entry of the back out type field, could you please select in the choice action as Dropdown without None and try to create UI Policy.



Screen Shot 2016-03-16 at 12.26.32 AM.png



HOpefully this should resolve.


ghsrikanth
Tera Guru

I think we have overlooked a simple fact, goranlundqvist has pointed out right. It should be AND, it shouldnt be OR condition. My bad