Global UI Policy Only Working on Default View?

richelle_pivec
Mega Guru

I have a UI Policy on our Intranet form that basically makes several fields read-only when the Incident State field is "Closed." It works great on the Default View of the Incident Form, but doesn't work at all on other views.

I tried creating a different UI Policy in our Dev instance and having just the "Incident State" field in case it wasn't working because I had fields listed that weren't on the view. That did not work.

I tried unchecking Global and adding two view names in, that did not work for either of them (and broke that it was working for the "Default_View").

I tried moving the Global Field from the "When to Apply" section to the "Default" section of the UI Policy form. That didn't work either.

Any thoughts on what would keep it from working on certain views if Global is checked?

Here's how it looks right now:

ui policy.png

Thanks,

Richelle

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

In order for the UI policy to work, the fields involved Active, and Incident state MUST be available on all views.



Also, no other view specific UI policies should be working on those field conditions as well..



Reference:


Creating a UI Policy - ServiceNow Wiki


View solution in original post

9 REPLIES 9

Good to know!


Alas, we are on UI11 until early next year (when every computer here will finally be off of XP/IE8). I am looking forward to Helsinki!


The screenshot was the BIG helper!


Chuck Tomasi
Tera Patron

In order for the UI policy to work, the fields involved Active, and Incident state MUST be available on all views.



Also, no other view specific UI policies should be working on those field conditions as well..



Reference:


Creating a UI Policy - ServiceNow Wiki


That was it. I had the Active field on the Default View, but not on the other one. It works when I add the Active field to the View (making it read-only to all but Admin, of course).



Thanks much,


Richelle


Glad you've got it addressed. I have been caught by that on UI policies and client scripts before too!



Let me know if that answered your question. If so, please mark it as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this discussion from your "inbox", use the "mark as correct" option under actions. If you are viewing it directly from the thread use the Correct Answer link (red with a star).


Thank you