Link to home
Start Free TrialLog in
Avatar of jforget1
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.
Avatar of Bill-Hanson
Bill-Hanson
Flag of United States of America image

You need to write a formula that evaluates to @True or @False.

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]"; @UserRoles);
(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.
Avatar of jforget1
jforget1

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
Avatar of Bill-Hanson
Bill-Hanson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That is exactly what I need, appreciate the help.