Button problem in notes client

hi

i have a button called “submit” this button should be visible to 5 people based on some field value i had written ahide when like…

user:=@name([cn];@username);

@if(temp=“1” ; user=txt_name;temp=“4”;txt_name1;temp=“7”;txt_name2…)

this is not working fine it working only for one person

txt_nam1 txt_name2 are fields…

what is the soluton or code for this…

Subject: button problem in notes client.

hi reddy,

wat i think, if you take the a filed whcih is multi valued, and then asign all the values(names of person) in that field and then put the code i think it will wrk.

mins User :=@name([cn];@username); (multy value)

Subject: RE: button problem in notes client.

Dont think it will work that way…

I would rather suggest that you create a new hidden field (say “hidden”)which captures the name based on temp value with:

@if(temp=“1”;txtname1;temp=“2”;txtname2…)

And then hide your required field with hide condition @username!=@name([CN];hidden)

Subject: button problem in notes client.

@if(temp=“1” ; user=txt_name;temp=“4”;txt_name1;temp=“7”;txt_name2…)

In the first condition (temp =1) u compare user and txt_name, but in remaining conditions u are simply putting the txt_name1,…

shouldn’t they also be user=txt_name1… user=txt)name2…

Subject: button problem in notes client.

I don’t quite understand what you’re trying to do, but instead of -

@if(temp=“1” ; user=txt_name;temp=“4”;txt_name1;temp=“7”;txt_name2…)

shouldn’t it be -

@if(temp=“1” ; user=txt_name;temp=“4”;user=txt_name1;temp=“7”;user=txt_name2…)

Subject: RE: button problem in notes client.

of course i had written the same thing what you did

it is working only for one person dear…

Subject: RE: button problem in notes client.

check that all the names are in one consistent format.

Subject: button problem in notes client.

I’ve found that the hide / when formulas seemt o have some limits when using @functions.

I know I had problems with @thisvalue.

I have no ideas if this is what you’re running into, but as a work around I put the code into a computed field to make sure it worked fine (I could see the value). I would then copy it into the hide / when - if it no longer worked… Then I guess it was a problem of an @ function not liked in the hide / when and I would just reference the computed field instead.

Subject: button problem in notes client.

hi das

this is not multi value field based on two conditions i want to display to the users

like

if temp=“1”; user=txt_name1;

temp=“4”;user=txt_name2;

like this i want to display

as you said if i tak multi value field how to do this…