Here is the latest LiveCycle Tutorial. In it I combine the lessons learned in the Form Flow and Radio Button Introductory videos to give some practical ways to design forms for a better end-user experience. Here is the JavaScript:
JavaScript in the “click” event of the Radio Button List
if (this.rawValue == 1)
{
FORM.Main.Subform2.presence = “visible”;
}
else
{
FORM.Main.Subform2.presence = “hidden”;
}