ACL

abhijee
Tera Contributor

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

7 REPLIES 7

Yes,

Use as UI Policy on client" checkbox is already checked.

 

Please check if there are any other UI Policies conflicting with the same field.

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:

Incident Category field cannot be set read only in an onLoad client script without having it inside ...

 

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:

StefanReichelt_0-1726087406330.png

Works as well. I just had to use a higher Order value because there were several conflicting UI Policies in my instance.