2 Replies Latest reply: Apr 12, 2012 4:40 AM by LoriAUC RSS

    Radio Button Mandatory Based on Previous Radion Button

    HelpMePlease2012

      Hi I'm having trouble, and I'm very new at Livecycle.
      I'm trying to make a radio group mandatory if another radio button is selected. What am I doing wrong??
      The form won't print even WoundRadio1 is selected (it should).

       

      Here's the logic I need. If woundRadio2 is selected then CleanseRadio radio group is manadatory. The code is below. CleanseRadio is set as Required. What am I missing here???

      ----- form1.#subform[0].Table7.Row1.#subform[0].WoundRadio.WoundRadio1::click: - (JavaScript, client)

      if (this.rawValue==1)

      {
      CleanseRadio.mandatory='disabled';
      }

      ----- form1.#subform[0].Table7.Row1.#subform[0].WoundRadio.WoundRadio2::click: - (JavaScript, client)

      if (this.rawValue==1)
      {
      CleanseRadio.mandatory='error';
      }
      else {


      CleanseRadio.mandatory='disabled';
      }