Skip to main content
Nintex Community Menu Bar

nintex form userequals control

  • June 24, 2017
  • 11 replies
  • 57 views

Forum|alt.badge.img+3

how do you make a form panel only visible to a specific person(s)?

11 replies

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • June 24, 2017

Hi there: 

A specific person (Ie, Fred in Accounting) or a specific person type (ie, The Employee's Manager, or, HR)

In both situations, you'll use a Validation rule. 

In this rule, you'll tell it under what condition you want to hide the panel. If you click on the panel, click the "hide" checkbox, then add a rule, you can say something like " not(userEquals(variable:Manager))"  - so if the user isn't equal to the variable where you've named the manager, then, hide.

Here's a pretty interesting question from someone else - different requirements but will show the validation ... 

https://community.nintex.com/message/57941-re-nintex-forms-validation-with-userequals?commentID=57941#comment-57941 

Then there is Sean's way as well, using operators (like == or != ).. so  "Manager != CurrentUser" then hide.

Let me know if this helps.


Forum|alt.badge.img+3
  • Author
  • June 25, 2017

Thank you for your help!  I will give that a try.


Forum|alt.badge.img+3
  • Author
  • June 25, 2017

I am pretty new to this, could you please tell me how to assign a sharepoint group to a variable?  I would like to hide a panel for everyone but this sharepoint group.  Thanks!


rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • June 25, 2017

Hey ‌ -- in this case I am pretty sure you can just say not(isMemberofGroup("GroupNameHere"))

So for example not(isMemberofGroup("Site Owners"))


Forum|alt.badge.img+3
  • Author
  • June 26, 2017

Thank you!  I really appreciate your help!


Forum|alt.badge.img+13

Hey Maureen! If ‌ solved your question, could you go ahead and mark her answer as correct so as to help others in the community find answers to similar questions quickly?


Forum|alt.badge.img+3
  • Author
  • June 26, 2017

I get a message “there are some problems with the design of this form…. Error: ‘isMemberofGroup’ is undefined

Maureen Eversmeyer


Forum|alt.badge.img+13

Hey Maureen, try fn-isMemberofGroup


Forum|alt.badge.img+3
  • Author
  • June 26, 2017

That worked! Thank you so much!

Maureen Eversmeyer


rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • June 26, 2017

h5! good call, ‌.


Forum|alt.badge.img+13

All in a day's work!