Skip to main content
Nintex Community Menu Bar

Nintex Forms: Disable Panel Based if User is in Group

  • Jan 30, 2017 5:18 PM UTC
  • 3 replies
  • 138 views
  • Translate All

Forum|alt.badge.img+2

Hi all,

I need to disable/enable panels within a form based on logic if a user is in a specific group.  So, if the user is in Group X, enable/disable all the panels.

I've seen a post that addresses this issue by setting the default value of a checkbox control.  (https://community.nintex.com/thread/2690)

This works for the first time the form is created, but does not seem to work for when the form is subsequently edited.  I need to be able to evaluate if the user is in a specific group everytime the form is opened, and then disable/enable the panels accordingly,

Thanks all for any help!

Cheers,

Troy

3 replies

rhia
Nintex Partner
Forum|alt.badge.img+15
  • Nintex Partner
  • Jan 30, 2017 8:59 PM UTC

Hi ‌!

So, what you have so far is a hidden box somewhere on your form that evaluates whether or not a user IsMemberOfGroup(X), and populates ... and then a rule for each applicable panel that says "if hidden box says this person is not a member, hide this panel".

And the issue you're having is that if a user EDITS, it is showing the panels regardless.

Is that right? Just want to be clear of your method before I test.

Cheers!

Rhia

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jan 31, 2017 12:21 AM UTC

it's because it's based on default value settings which is only evaluated in NEW mode and only on form load.

you need to base the logic on rule(s) which are evaluated after every change.

I think this thread might help you

https://community.nintex.com/message/47656-re-hide-or-disable-fields-based-on-multiple-conditions?commentID=47656#commen… 

Translate

Forum|alt.badge.img+2
  • Author
  • Jan 31, 2017 12:31 PM UTC

Thanks for responding Rhia and Marian.   Marian, the link you provided fixed my issue.  Although the fn-IsMemberOfGroup() function is not available as a Runtime Function option when configuring rules, you can still paste it in to the condition logic and it will work :-).  

Thanks again for your help!

Cheers,

Troy

Translate