2 Replies Latest reply on Dec 26, 2012 12:33 PM by 102503natalie

    How to setup multiple radio buttons with only one option to select?

    102503natalie

      I am working on making a webform PDF 508 accessible.  There's a section where a person has to select how they would like to pay.  There are three options within that section, and I need to make it work to where they can only select one of those radio button options.

       

      Here's the code I'm currently using (which is not working):

       

      var A = this.getField("Electroniccheck");

      var B = this.getField("Billlater");

      var C = this.getField("Creditdebit");

      if    (A.value == "Yes"){

              B.value = "Off";

      C.value = "Off";

       

      }

       

      And of course I would change the fields up for each button. 

       

      What am I doing wrong here?