Skip navigation
HelpMePlease2012
Currently Being Moderated

Radio Button Mandatory Based on Previous Radion Button

Apr 11, 2012 7:29 AM

Tags: #javascript #radio_buttons

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::cli ck: - (JavaScript, client)

if (this.rawValue==1)

{
CleanseRadio.mandatory='disabled';
}

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

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


CleanseRadio.mandatory='disabled';
}

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points