Hello,
I am trying to create a section on my form that is only visible to authorized users. I have already created a "Current User" field which detects the name of the person completing the form (in SharePoint online), and I want to create a rule such that if the user is not one of a specified group of users, the section would be hidden. I've tried creating the following rule and switching it around a couple ways, with no luck:
Approach 1: Created one field, Current user and created rule on section, "If Current User does not contain) Name 1, then hide this section." -- That test worked
However, when I tried to expand on that rule's condition to include additional users, it didn't work. Here's what I did for that one:
Approach 2: "If Current User does not contain) Name 1 or Name 2 or Name 3 or Name 4 or Name 5 then hide this section." -- This did not work
I then tried a third approach wherein I created another field called "Authorized Users" (text box field) wherein I entered the user names of each individual, separated by a semicolon (ie Name1; Name2; Name3; etc...)
I then created a rule called AuthenticateUser as follows: "If Authorized Users does not contain and I entered one username (as text), then hide this control. -- This did not seem to work either.
Can someone please tell me how, or better yet, if what I trying to achieve can be done, and if so, how?
Thank you SO much!
Jen