jforget1
asked on
Hide based on field value.
What is the syntax to hide text based on the value of a field. I have to tie a button so only the user in the "md" field can see that button. I normally do them based on roles.
(cont)
Also, for complex hide-when formulas, I find it easier to write a "show-when" formula, then just place a ! (not) operator before the entire expression.
Also, for complex hide-when formulas, I find it easier to write a "show-when" formula, then just place a ! (not) operator before the entire expression.
ASKER
The ones based on roles I am good with, I do those all the time. This is a case where I want a button to show only for the user in the MD field.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That is exactly what I need, appreciate the help.
The easiest way to check for a role is to use @IsMember (or @IsNotMember).
For example, if you want to display a paragraph only to users with the [ViewAdmin] role, this would do the trick...
@IsNotMember("[ViewAdmin]"