Hide a button based upon users in a field

Hello

How can i hide an action button based upon members of a field already contained within a field on the form? So that only members of that field can see the button and no-one else can including the author of the form.

Many thanks for any help.

Subject: Hide a button based upon users in a field

You pretty much answered your own question.

If this is on the form then just have in the hide when formula

@IsNotMember( @Name([Abbreviated]; @UserName); @Name([Abbreviated]; YourFieldName) )

You can do the samething on a view, but you need to turn on the option to calculate upon document change.

Subject: RE: Hide a button based upon users in a field

Thank-you to both of you for your help.

Subject: Hide a button based upon users in a field

Try placing this in the Hide when formula of the button.

@If( @IsMember( @UserName ; fldWithNames) ; @False ; @True)

Make sure the list of names in the field have the same format as @UserName, otherwise you need to format them, i.e. using the [CN] attribute.

You could also use @Contains which doesn’t require an exact match for the entire name but performance is better using @IsMember.

/Hans Fokine