ACL constrain a field to users except user who is assigned to record

Phong Lo
Tera Guru

I am trying to constrain a concurrence user from changing other concurrence user's "Sign-Off Status" field when viewing from a list in a parent record called "Requirement". These users belong to a concurrence group in the Requirement form. When in the Requirement form, under Related Lists, concurrence users can edit their "Sign-Off Status", but users can only edit their own "Sign-Off Status" field.

 

I created a "list-edit" ACL and wrote a script. I apologize in advanced, my scripting is limited. The functionality is not working as expected. Below is my ACL I created:

PhongLo_1-1721745121840.png

PhongLo_0-1721752004473.png

 

 

The list view for reference:

PhongLo_0-1721745024765.png

 

1 ACCEPTED SOLUTION

Phong Lo
Tera Guru

I found the solution. I didn't need to script. I had the condition built as Concurrence POC is dynamic (me) and set the role to the concurrence user role. For some odd reason, when I still had the advance button checked, it didn't work. Unchecking this will help the functionality.

View solution in original post

3 REPLIES 3

Brian Lancaster
Tera Sage

Try if (gs.getUserID() != current.concurrence_poc)...

Although I'm a little confused. Do you want them to edit there own but not others? If that is the case you should be doing equals == instead of not equals !=. 

I tried that with the double equals. Still doesn't let a user edit their own.

Phong Lo
Tera Guru

I found the solution. I didn't need to script. I had the condition built as Concurrence POC is dynamic (me) and set the role to the concurrence user role. For some odd reason, when I still had the advance button checked, it didn't work. Unchecking this will help the functionality.