Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Radio Button Mandatory Based on Previous Radion Button

Avatar

Former Community Member

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';
}

2 Replies

Avatar

Level 6

You should post this question in the LiveCycle Designer forum.

Avatar

Level 2

Moving this discussion to the LiveCycle Designer ES forum.