These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How can I combine conditions from different subforms?

francisvaneycken
Registered: Mar 30 2009
Posts: 37

Hi to all!

Let's say I created a subform with three radiobuttons :

apple

orange

lemon

Now I've got another subform (tomato) with one radiobutton that hides a numeric field.

What I want is that :

1. Only people who choose apple can also click on the tomato-subform-radiobutton

2. That people who do this get another (hidden) subform visible.

How can I fix this? Please help!

Thanks in advance!

My Product Information:
LiveCycle Designer, Windows
suewhitehead
Registered: Jun 3 2008
Posts: 232
I did something very similar to this, except I used checkboxes. Here is how you could do it:
Make the Tomato checkbox "hidden" or "invisible". Make the other hidden subform (Papaya?) "hidden".
Write script on the Apple checkbox to make the Tomato checkbox visisble. Write script on the Tomato checkbox to make the Papaya subform visible.

//on Apple checkbox using the change event to show/hide Tomato
if (Apple.rawValue == true)
{Tomato.presence = "visible"
}
else
{Tomato.presence = "hidden"
}

////On Tomato checkbox using the change event to show/hide Papaya subform
if (Tomato.rawValue == true)
{PapayaSubf.presence = "visible"
}
else
{PapayaSubf.presence = "hidden"
}

The else statement sets Tomato or PapayaSubf back to hidden if the check is removed.

Also you may need to put in the entire path to the field or subform, such as form1.P1.Header.Tomato.presence or form1.P1.Papaya.presence in the script.