Solved

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

  • 5 March 2021
  • 3 replies
  • 15 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!!

icon

Best answer by grixon 9 March 2021, 07:08

View original

3 replies

Badge +2

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

Thanks Frank. Would my rule then be:


 


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

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

Reply