ACL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 06:13 AM
Hello Experts,
I am working on the below requirement.
When State is Pending HI Case
and Caller is Logged in user
Then make the state field read-only on the form as well as on list
How can we achieve this using ACL?
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 09:49 AM
Yes,
Use as UI Policy on client" checkbox is already checked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 11:33 AM
Please check if there are any other UI Policies conflicting with the same field.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2024 01:44 PM
Ok, that took me a while. It was not as simple as I thought. I see the Data Policy was not enough, so I tried with an additional UI Policy - even that failed.
What I found:
I tried that with a Client Script, and this worked:
setTimeout(function() { g_form.setReadonly('state', true); }, 0);
Tried the same in the Script of my UI Policy:
Works as well. I just had to use a higher Order value because there were several conflicting UI Policies in my instance.