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 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.