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

Assistance with creating interactive form

Zeroh Blue
Registered: Aug 4 2010
Posts: 8
Answered

I am not even sure if this is possible
The basic structure is either a simple text field or a drop down list.
This field would be a numberical digit #
 
when # = 1
Body of text and a field should appear.
 
e.g.
 
TITLE 1................... [field1]
LABEL A [Field A]
LABEL B [Field B]
 
when # increase or changes in this case # = 3 the form should update accordingly
 
e.g.
 
TITLE 1................... [field1]
LABEL A1 [Field A1]
LABEL B1 [Field B1]
 
TITLE 2................... [field2]
LABEL A2 [Field A2]
LABEL B2 [Field B2]
 
TITLE 3................... [field3]
LABEL A3 [Field A3]
LABEL B3 [Field B3]

 

My Product Information:
LiveCycle Designer, Windows
SLDC
Registered: Oct 25 2010
Posts: 70
Accepted Answer
Wrap each set of title + labels in a subform; call them Title_1, Title_2, and Title_3. Set each to "hidden".

Create the text field or drop-down list. In its Exit event, put:

switch(this.rawValue) {
case 1:
Title_1.presence = "visible";
Title_2.presence = "hidden";
Title_3.presence = "hidden";
break;
case 2:
Title_1.presence = "visible";
Title_2.presence = "visible";
Title_3.presence = "hidden";
break;
case 3:
Title_1.presence = "visible";
Title_2.presence = "visible";
Title_3.presence = "visible";
break;
}


Zeroh Blue
Registered: Aug 4 2010
Posts: 8
Would using this script also "expand" the current form?

create additional pages as needed ?
SLDC
Registered: Oct 25 2010
Posts: 70
In order to do that, your page will need to be a flowed (rather than positioned) subform, and will need to have "Allow Page Breaks within Content" checked. See the Object palette, Subform tab.

Save the form as an Adobe Dynamic XML Form rather than an Adobe Static PDF Form, using the "Save as type" options in the Save As dialog box.

If flowing the page contents top-to-bottom or Western-text-style (left to right, then top to bottom) messes with your layout, make positioned subforms within it to help you put objects where you want them.