Copy link to clipboard
Copied
Hi
i have 2 radio group each one have 2 choice i need javascript to do as shown in the picture
some one help plz
Ajust the orange words to match names and export values of your form and place this script as a Calculation script in the text field (Text1):
if (this.getField("Group1").value == "No" && this.getField("Group2").value == "No") {event.target.display = display.hidden;}
else {event.target.display = display.visible;}
Copy link to clipboard
Copied
Ajust the orange words to match names and export values of your form and place this script as a Calculation script in the text field (Text1):
if (this.getField("Group1").value == "No" && this.getField("Group2").value == "No") {event.target.display = display.hidden;}
else {event.target.display = display.visible;}
Copy link to clipboard
Copied
waaw,, you are hero (:
thanks aloot
Copy link to clipboard
Copied
What should happen when no choice are made?
Copy link to clipboard
Copied
"No choice" is not an option when using radio buttons.
😉
Copy link to clipboard
Copied
What I mean is when you open file and no radio buttons are selected,should field be visible or hidden.
With your code it will be visible and it's ok if OP wants it that way, unless he wants it hidden when no choice are made.