11 Replies Latest reply on Jun 23, 2016 9:22 AM by try67

    Select a radio button based on a checkbox

    Hamberg

      Would like to select a radio button choice (for my own knowledge, is this an array?) based on if a Checkbox is checked. Had some help on a different probelm earlier this week and use the script below but not sure of the selection procedure for a radio button choice.

       

      if (event.target.value=="Off") { 

          this.getField("Text1").value = ""; 

      } else { 

          this.getField("Text1").value = "ABCXYZ";   

      }