Visibility, Enabled condition for Field

asked on February 26, 2016 14:59

Hello,

Can you tell me how to make some controls visible/invisible to a specific roles? I have custom field in users table CV and Meta File uploader control. I want it to show only for specific roles. I saw Visibility condition and also specified role name as a condition, but it's not working.

Thank you for your help

Recent Answers


Joshua Adams answered on February 26, 2016 18:01 (last edited on December 10, 2019 02:30)

Something like this may be an option:

{% CurrentUser.IsInRole("Role1") || CurrentUser.IsInRole("Role2") |(identity)GlobalAdministrator%}

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.