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

Dynamic forms - hiding data based on options

Gillian
Registered: Jul 10 2007
Posts: 63

I would like to have a form with the following feature.

Button A
Button B

Subform A
Subform B

If Button (or radio button or list box) A is selected, Subform B goes invisible.
Likewise, if Button B (or radio button or list box) B is selected, Subform A goes invisible.

I think I have to put Subform A into a container and bind it Button A, but I can't figure out how to do that.

If anyone can help me, or make me a simple form so I can see the code, that would be very much appreciated. =)

Thanks,
Gillian

-Gillian

UzelJC
Registered: Jul 16 2007
Posts: 5
Gillian,

I'm working on something similar and haven't figured out how to make Button A and Subform A work together either.

What I opted for was to have Javascript in Button A create subform A dependent on the value of Button A. That way I was able to have the user enter different inputs into Button A and subform A would appear as anything I wanted it to, including not there at all or invisible.
UzelJC
Registered: Jul 16 2007
Posts: 5
The drawback to this method is that the PDF has to be rights-enabled or the end user has to have Acrobat
scottsheck
Registered: May 3 2007
Posts: 138
Read the help on the .presence property. That will do everything you want.
UzelJC
Registered: Jul 16 2007
Posts: 5
What document is the help on the .presence protery in? I have the Acrobat 7.0 Scripting Guide and Scripting Reference. Is the help in one of those?

Thanks for the tip! I really need to have this work with Reader.
scottsheck
Registered: May 3 2007
Posts: 138
I use Designer 8.0. While in Designer, you just go to the online help and search for '.presence' by pressing F1.

Or you can look at these examples, there are many examples of using this property:
http://www.adobe.com/devnet/livecycle/designer_scripting_samples.php