1 Reply Latest reply on Dec 17, 2014 2:47 PM by Nagannudj

    Custom checkbox javascript


      I have Yes & No checkboxes that are required fields. If "No" is checked, various other fields become disabled and turn gray but the unchecked "Yes" box is still required because the Yes & No boxes have the same Name but different values. Is there a script to make the "Yes" box become either disabled or not required, independent of the "No" box or will I need to give the 2 boxes different names?

        • 1. Re: Custom checkbox javascript
          gkaiseril MVP & Adobe Community Professional

          If you want the check boxes to be mutually exclusive, then you need to give them the same name and different export or option values. For check boxes the number of possible answers is the number of check boxes with the same name + the unselected value of "Off".


          It is possible you could write a script to make 2 different check boxes work like an exclusionary group but you would need scripts for both buttons.


          • 2. Re: Custom checkbox javascript
            Nagannudj Level 1

            Yep. I expected as much. I was just hoping there might be an easier way to do it as I have a bunch of these Yes/No buttons that trigger other things within in the form so it's going to be labor intensive (including a bunch of custom form reset scripts). Ugh!


            Thanks for confirming that I'm proceeding in the right direction though.