bkoden
January 31, 2026, 10:45am
1
Please complete the details below then remove this line:
Domino/Notes Version: 14
Problem/Query:
The two fields are having both the same options:
Nothing and Buy
But: it should not appear, that both are set to ‘Buy’.
Idea is to manipulate both fields vice versa to transfom the other (in real time). The user will notice, that only one ‘buy’ is possible.
Both fields are set to ‘refresh fields on keyword change’.
Field RB1:
@IfIf (
RB1 = “Buy”
& RB2 = “Buy”@SetField
@SetField (“RB2”;“n@SetFieldthing”);
@SetFi @Commandld(“RB1”;RB1)
);
@Command ([ViewRefres@IfFields])
Field RB2:
@If (
@SetFieldB1 = “Buy”
& RB2 = @SetFieldBuy ”;
@SetField @Command“RB1”;“nothing”);
@SetField (“RB2”;RB2)
);
@Command ([ViewRefreshFields])
Logic seems ok, but it does not work.
Input translation formula → works only on document save ?
Input validation formula (with @success at the End) → has no effect
Where should i place this code, that it works instantly ?
Thanks
Brian
Hi brian
In the field properties, the options ‘refresh fields on keyword change’ would result in document refresh on every change in the fiield. Check this option for both the fields. It should work.
Hope this helps
bkoden
February 1, 2026, 5:56am
3
Hi Rajneesh,
thank you for your efforts.
But this option is set . It doesn’t work anyway.
Finally worked out and tested.
Add a hidden field say “currentrb”
In “entering” portion of RB1, add the script
Dim ws as new notesuiworkspace
Dim uidoc as notesuidocument
Set uidoc=ws.currentdocument
**** you can move the above to global portion
Uidoc.fieldsettext(“currentrb”, “RB1”)
For entering in rb2 , add the same script but set the value of currentrb to RB2
Now set both rb1 and rb2 to refresh fields on keyword change
Input translation for RB1 : @ifif (RB1=”Buy”¤tfield=”RB1”;”Buy”;RB2=”Buy”;”Nothing”;RB1)
Input translation for RB2 : @if (RB2=”Buy”¤tfield=”RB2”;”Buy”;RB1=”Buy”;”Nothing”;RB2)
I have tested it and it works. Do fall back for any clarifications