1 Reply Latest reply on Oct 24, 2014 3:12 AM by try67

    "Select All" Check Boxes Script

    Bayou Buck

      I'd like to create a checkbox on my form that, when checked, automatically checks several other checkboxes. A Select All/Deselect All if you will. Any idea what javascript code would accomplish that? Thanks.

        • 1. Re: "Select All" Check Boxes Script
          try67 MVP & Adobe Community Professional

          You could use something like this as the (main) check-box's MouseUp event:

           

          this.getField("Check Box1").checkThisBox(0, event.target.value!="Off");
          this.getField("Check Box2").checkThisBox(0, event.target.value!="Off");
          this.getField("Check Box3").checkThisBox(0, event.target.value!="Off");