AnsweredAssumed Answered

fn-isMemberOfGroup and a variable?

Question asked by brentless on Aug 17, 2016
Latest reply on Jan 5, 2017 by brentless

I have a drop down that is used to pick a "group" name.

 

I want to use the fn-isMemberOfGroup() function to display a section only if the member is part of a group based on that drop down.

 

Example: Dropdown field (named "Industry") includes:

Industry1

Industry2

Industry3

 

I have 3 sharepoint groups (each with membership visibility set to Everyone)

Industry1 Viewers

Industry2 Viewers

Industry3 Viewers

 

I've tried every combination I can think of to get this to work

  • fn-isMemberOfGroup("Industry1 Viewers")     -- manually type name, works fine
  • fn-isMemberOfGroup(Industry+" Viewers")     -- does not work 
  • fn-isMemberOfGroup("Industry Viewers")       -- does not work
  • fn-isMemberOfGroup(Industry Viewers)          -- does not work
  • fn-isMemberOfGroup(""+Industry+" Viewers")  -- does not work
  • fn-isMemberOfGroup(Industry" Viewers")        -- does not work

 

Is this possible?  Am I messing up the syntax?

Outcomes