AnsweredAssumed Answered

Custom Form Controls Based on User Role/Group

Question asked by pedwards99 on May 17, 2018
Latest reply on May 17, 2018 by pedwards99

Hi there,

 

I'm trying to create a custom Share property form (for a workflow task) where the requirement for one of the properties is that it must only be editable by members of the Site Manager group i.e if the user is a member of the Site Manager group I want to display a text field, otherwise just a label.

 

I had hoped that I'd be able to get at the group membership info for the FTL for the control but I'm not sure if this is possible

 

For example, this does what I want for the admin user:

<#if user.isAdmin>

 ...display the text field

<#else>

...display the label

</#if>

 

what I need is to replace <#if user.isAdmin> with something like <#if user.isSiteManager>

 

Any ideas?

 

Thanks

Paul

Outcomes