Group Editor

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Mapleleaf
Posts: 29
Joined: Tue Oct 25, 2016

28 Apr 2017

Hi,
I have a problem with the group editor.

I built a form for a special sharepoint-group called SB-BS.
When I pick the group SB-BS in the group editor as a sharepoint group everything works fine.
When I use a user-defined rule

IsCurrentUserMemberOfGroup('SB-BS'')

it doesn't work and the user gets the Form for all users. Rule validation says that the formula is valid.
Is there something wrong with my rule?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

28 Apr 2017

Looks like you have a syntax error in your expression: left quote is single and the right is double.

Mapleleaf
Posts: 29
Joined: Tue Oct 25, 2016

04 May 2017

OK. Sorry for that. I used single marks like this:

IsCurrentUserMemberOfGroup('SP-Group-Name')

The double mark was a fault when copying the code. Unfortunatly it still doesn't work, while it works when picking a single sharepoint-group from the other tab.

:?: :?: :?:

Mapleleaf
Posts: 29
Joined: Tue Oct 25, 2016

04 May 2017

OK. The issue above is solved. It was a general problem with permissions on the list.

Now another question:

Is it possible to combine some rules e.g.:

IsCurrentUserMemberOfGroup('SP-Group-1') or IsCurrentUserMemberOfGroup('SP-Group-2') etc.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

08 May 2017

Hi,
Sure, user-defined rules support complex conditions. Your rule should work fine:
IsCurrentUserMemberOfGroup('SP-Group-1') or IsCurrentUserMemberOfGroup('SP-Group-2')

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests