Code for hiding action button

Hi all!,

i have send a thread earlier on regarding about the hiding of the action button, i read on the ebooks that i have with me and found the following code for the formula window for the action button;

@If(@IsNotMember(“test1”;@UserNamesList))

however this does not work, can anyone kindly point out my mistake? thanx.

Regards,

Hengshi

PS:

test1 is the name of the receipent;

I intend to hide the action button from test1;

error appear:

the error is that the action doesnt hide from test1.

Subject: Code for hiding action button

Try…

@IsMember(“test1”;@UserNamesList)

This expression will evaluate to True if ‘test1’ is in the UserNamesList and thus the hide-when will evaluate to True and so the action will be hidden.

Frunobulax

Subject: Code for hiding action button

When I make an @if statement in a hidewhen, I always put the full conditions, so it would be:

@If(@IsNotMember(“test1”;@UserNamesList);@true;@false)

Subject: RE: Code for hiding action button

If the @IF makes it easier to read, that’s OK. Otherwise, the @IF is unnecessary.