Avatar

Level 10

Hi,

Check a few things:

  1. Form is saved as Dynamic PDF;
  2. Preview of form is interactive in the Forms Properties, Preview tab.

The following Javascript in the Initialise and mouseUp (or Exit) events of the CheckBox should work:

if (this.rawValue == 1)  //1 being the "on" or ticked value
{
    subForm1.presence = "visible";

}
else
{
    subForm1.presence = "hidden"; //can also go for "invisible"

}

The initialise event should check the value of the checkbox when the user opens the form and set the subform visibility accordingly. The mouseUp (or Exit) event should set the visibility depending on the user input when using the form.

If the script is not working it sounds like the form is not saved as Dynamic.

We have a sample uploaded at this topic: http://forums.adobe.com/thread/426690?tstart=30

Hope that works,

Niall

PS: Paul has the answer above...