Conditional selection of Radio option
Conditional selection of Radio option
(OP)
I have a C6.1 Legacy app.
Q. I want to select (prime) a certain Radio Option from a group if a certain Check Box is ticked. It can remain selected if the Check Box is un-ticked.
I thought this would be an easy task but it is really testing me.
Thanks.
Q. I want to select (prime) a certain Radio Option from a group if a certain Check Box is ticked. It can remain selected if the Check Box is un-ticked.
I thought this would be an easy task but it is really testing me.
Thanks.
RE: Conditional selection of Radio option
the optionbox use a certain variable, for example -> loc:option BYTE , every radio has an value.
In accepted-embed of checkbox (use variable loc:check BYTE), you can set this variable:
IF loc:check then !checkbox is ticked
loc:option = 1 !radio-option value 1
ELSE !checkbox is unticked
loc:option = 2 !radio-option value 2
END
DISPLAY()
cagiv
RE: Conditional selection of Radio option
IF loc:check then !checkbox is ticked
loc:option = 1 !radio-option value 1
SELECT(?Radio1)
ELSE !checkbox is unticked
loc:option = 2 !radio-option value 2
SELECT(?Radio2)
END
DISPLAY()