Skip to main content
Known Participant
October 22, 2024
Question

Fillabe form 2 radio buttons "and/or", the 3rd "or"

  • October 22, 2024
  • 1 reply
  • 217 views

Have a form with 3 radio buttons, the first 2 need to be set up so they can select either/or or both, but if the third option is selected, then user can't select form first 2 options.

 

User can select Autopay, or Deposit or both AutoPay & Deposit. If user selects Contract In Full, the can't select Autopay or Deposit

 

See attached screenshot for Illustration.

 

I know how to set up radio buttons to both and/or, but adding the option of both than one more button that is only OR is probably code.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
October 22, 2024

You need to use check-boxes for this, not radio-buttons. The first two fields in each row can be a group (ie. same field name, unique export values). The third needs to have a unique name, and a script attached to its Mouse Up event should clear the other fields and disable them when ticked, and enable them when unticked. If the name of the two other fields is Group1, for example, use this code:

 

if (event.target.value=="Off") {
	this.getField("Group1").readonly = false;
} else {
	this.getField("Group1").readonly = true;
	this.getField("Group1").value = "Off";
}
try67
Community Expert
Community Expert
October 22, 2024

In second thought, the first group can be radio-buttons, but the third has to be a check-box.