Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Transition validator based on user in group

Daniel Upton September 5, 2017

I would like to know if its possible to set a workflow validator that if a user is eneterd into a sign user custom field that the user must belong to a specific group?

 

I have tried the follow simple script but it does not seem to work?

 

cfValues[‘Some Custom Field’] == isUserMemberOfGroup(‘Group Name’)

 

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2017

Your script does not make a lot of sense.  Translated into English, it asks "is the value in (custom field) equal to (yes or no)?"

I suspect you need something more like

crowdService.isUserMemberOfGroup(cfValues['some Custom Field'], "Group Name")

Suggest an answer

Log in or Sign up to answer