HideWhens On View Column

Im trying to use a simple @UserRoles Hidewhen on a Column View and it is just not working. Is there something Im missing? Ive played with it ten different ways and still nothing.

!@If(@UserRoles = “admin”)

The Column is displaying a Icon to reference it as a certain type of document for Administrators… Other uses dont need to see it and since I cant seem to hide the column from web users I just thought I’d do it by roles and no such luck any help would be great…

Subject: HideWhens On View Column

change your syntax a bit:

!@Contains(@UserRoles; “[admin]”)

you need to include the brackets.

Subject: RE: HideWhens On View Column

GAH thanx I totally didnt even notice I left the brackets out.

Fixed

Subject: HideWhens On View Column

Try:

@UserRoles != “admin”

or probably even better

@IsNotMember(@UserRoles; “admin”)

Also, take a look at my recent article on Writing Better Hide-When Formulas for some helpful (I hope) tips.