1 Reply Latest reply on Apr 14, 2008 6:05 AM by evil8

    Radio Button Require Text Field

    Level 1
      Is it possible to require a text field be completed if a radio button is selected? I tried it with the following script:

      var rb = this.getField("ThumbLength").value;
      var tb = this.getField("TooLongSubtract");

      if(rb == "Yes"){
      tb.required = true;
      } else {
      tb.required = false;
      }

      The radio button is part of a set of mutually exclusive buttons. a similar setup worked for check boxes.

      Any help is appreciated. Thank you.