Hi Marla,
Here is a quick example that i've put together which should help you, i've created 3 radio buttons side by side (so they are linked at there parent radiobuttongroup node which i've called "seeme"), and have named them "nothing", "show1" and "show2" (so the rawValue's of these will be 1, 2 and 3 respectively). These are on a Subform called MAIN with any other fields that everyone will need to complete.
I then have another 2 subforms, one subform called SHOW1 and the last called SHOW2 (each labelled so they are with their respective radio buttons - although you can call them what they like).
The subforms SHOW1 and SHOW2 will need to be set to hidden, you can either do this through object properties, or via JavaScript on the initialize event of each of the subforms to say: this.presence="hidden";
The form must be saved as a Dynamic XML Form.
The code says if their is no selection or "nothing is selected" don't show the extra subforms, but if "show1" is selected (rawValue of 2) then show the "SHOW1" subform, and is "show2" is selected (rawValue of 3) then show the "SHOW2" subform.
Please the following code On the CHANGE event of the radiobuttongroup node (seeme):
if (MAIN.seeme.rawValue==2)
{
SHOW1.presence="visible";
SHOW2.presence="hidden";
}
else if (SF_HEADER.seeme.rawValue==3)
{
SHOW2.presence="visible";
SHOW1.presence="hidden";
}
else
{
SHOW1.presence="hidden";
SHOW2.presence="hidden";
}
Hope this helps,
Jay