Link to home
Start Free TrialLog in
Avatar of Fordraiders
FordraidersFlag for United States of America

asked on

lotus script to assign a value to a field on condition

lotus notes  4.6/r5
domino r5


what I need:
I have a field that is a radiobutton - editable   with 2 options...

Off-Site/Desktop | Off-Site/Desktop
On-Site | On-Site


If a person selects   "On-Site"

I need another field("SiteProjectManager_1")  to change a value called   "JIM PARKER"
SiteProjectManager_1 -  a "Text"-computed for display....

I currently already have this in the "Value" for  "SiteProjectManager_1"

@If(ProjectSize = "";@Return("");@Success);
@If(ProjectSize ="20-200" ;"David Thomas";ProjectSize ="501-1000" | ProjectSize ="1001-2500"|ProjectSize = "2500+";"Tom Hobbs";"Dale West")

Thanks
fordraiders







Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Do you mean that you want a second field to be computed, with a value that depends on the value of your radio button field?

Make the second field a computed field, with formula @If(RadioButtonField="On-Site"; "Jim Parker"; "Lady Penelope")

Set the options in the first field to Refresh fields on keyword change (in the field's Properties box)
Avatar of Fordraiders

ASKER

no the same field:

The first field is :  "WorkRequestType"(radiobutton)   if its value gets changed to "On-Site"

I want the second field :  "SiteProjectManager_1"  changed to "   "Lady Penelope"

but as stated above I already have code in the  "Value" property in "SiteProjectManager_1"
I did not know if what I'm trying to do would interfere with this other code ?

Thanks
fordraiders
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France 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