Skip to main content
Nintex Community Menu Bar
Solved

How to restrict a field's access to the people stated in another field?

  • March 5, 2021
  • 3 replies
  • 31 views

Hello all,

 

I have created a Nintex form with a number of fields. One of the fields is called "WSLead' and is configured as "People and Groups" and allows for "Multiple Selections". I want to restrict access on all other fields where only the name(s) stated in "WSLead" can edit the fields.

 

To do this, I'm using the rule "Disable" with condition set as "WSLead!=Current User", however I tested and noted that this only works when there is one name in the field "WSLead" and won't work if I put more than one name in "WSLead". For example, I can fill in the other fields if I put my name in "WSLead" but if I put one more name there I can no longer edit the other fields.

 

Appreciate if anyone can shine some light and provide me a solution.

 

Many thanks!!

Best answer by grixon

Found the right rule to be Field1!=Current User && Field2!=Current User

3 replies

Forum|alt.badge.img+2
  • Rookie
  • March 5, 2021

Hi,

 

Maybe a possible solution is to create a number of additional hidden fields for users. You can extract the main field into the separated fields en use those fields for your rule. However if there will be 6 users filled in and you have 5 hidden fields created than it will fail.

 

Regards,

Frank


  • Author
  • March 8, 2021

Thanks Frank. Would my rule then be:

 

or(Field1!=Current User, Field2!=Current User)?


  • Author
  • Answer
  • March 9, 2021

Found the right rule to be Field1!=Current User && Field2!=Current User