Skip to main content
Nintex Community Menu Bar

Make a text field visible for 4 user groups.

  • August 2, 2021
  • 5 replies
  • 23 views

Forum|alt.badge.img+3

Hello everyone,

 

I have a question.

 

I would like to make a textbox visible to multiple SharePoint groups.


Currently the textbox is only visible for one SharePoint group:
fn-IsMemberOfGroup("Partner Group")

 

I have already tried to add an OR function, but it didn't really work:
fn-Or(fn-IsMemberOfGroup("Test1 Group"), fn-IsMemberOfGroup("Test2 Group"))

 

Are there any tips what else I can try?

 

Many greetings

5 replies

Forum|alt.badge.img+12
  • Apprentice
  • August 2, 2021

Hi,

Try this way

fn-IsMemberOfGroup("Test1 Group") || fn-IsMemberOfGroup("Test2 Group") || fn-IsMemberOfGroup("Test3 Group") || fn-IsMemberOfGroup("Test4 Group")

Hope this help!


Forum|alt.badge.img+12
  • Rookie
  • August 3, 2021

@FlorianZ17 you can also try to use the nested If statement.


Forum|alt.badge.img+3
  • Author
  • August 3, 2021

Hello @kchaluvadi 

 

I tried your solution and at first it looked fine. Unfortunately, when I tested it, I realized that not only the four groups can see the text box.

 

fn-IsMemberOfGroup("Independence Gruppe") || fn-IsMemberOfGroup("Corporate Responsibility Gruppe") || fn-IsMemberOfGroup("People Gruppe")

 

I have also tried it with and without ".

 

If I only say fn-IsMemberOfGroup("Independence Gruppe") it works.

 

Do you have another idea?

 

Kind Regards,

 

Flo


Forum|alt.badge.img+11
  • Scholar
  • August 3, 2021

@FlorianZ17  Below works for me:

 

Or(fn-IsMemberOfGroup('Group1'),fn-IsMemberOfGroup('Group2'))


Forum|alt.badge.img+12
  • Rookie
  • August 3, 2021

@FlorianZ17 try below IF statement instead of Or

  • Add a calculated control i.e. ctrl_check_group:
    If(fn-IsMemberOfGroup("Independence Gruppe"), True, If(fn-IsMemberOfGroup("Corporate Responsibility Gruppe"), True, If(fn-IsMemberOfGroup("People Gruppe"), True, False)))
  • If ctrl_check group is !True then disable your text control