
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:26 AM
So on a record we have two fields, Assignment Group and Assigned To.
I'm writing a UI Policy where Assigned To can only be filled in if you're a member of the chosen Assignment Group.
Here is that Policy logic:
This basically says, If the Assignment Group is one of my groups, then Assigned To field is NOT read-only. Otherwise, it is.
So, here is the policy in action:
I am a member of the ServiceNow Admin group. So why is Assigned To ready-only????
I turned on UI Policy debugging and here's what it says when I reload the form:
What?
assignment_group's value of "11a3bc9adb8b360083c9d411ce961934 [ServiceNow Admin] " with the condition( DYNAMIC d6435e965f510100a9ad2572f2b47744) evaluates to FALSE
Why is it returning false??
If I run this in a background script:
This is my result:
11a3bc9adb8b360083c9d411ce961934 is there, so it should return TRUE , meaning that it sees me in that group!
Any idea why the UI Policy's filter thinks I'm not in that group?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:33 AM
Dynamic filters doesn't work in UI Policy.
This post can give you better idea.
Please mark helpful/correct if my answer helped you in any way.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:33 AM
Dynamic filters doesn't work in UI Policy.
This post can give you better idea.
Please mark helpful/correct if my answer helped you in any way.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:38 AM
Yeah... well ya wanna know the real sad part? I posted a reply in your linked thread not too long ago! Doh! ::hangs-head-in-shame::
Thanks kushal!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:44 AM
Hi,
Dynamic filters not supported in UI policy condition field since UI policy condition field evaluates at client side and not server side and that method is server side
use onchange client script for this
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:48 AM