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

Add fields based on Dropdown Selection

Sammy Mistal
Registered: Jun 16 2010
Posts: 2

I am trying to find out how to add fields based on a related drop down selection?

I have (badly) attempted to show below:

CALCULATED FIELD 1 ( The addition of corresponding fields for selection1)

If field[0] = "selection1" then add field2[0]
If field[1] = "selection1" then add field2[1]
If field[2] = "selection1" then add field2[2]
If field[3] = "selection1" then add field2[3]

CALCULATED FIELD 2 ( The addition of corresponding fields for selection2)

If field[0] = "selection2" then add field2[0]
If field[1] = "selection2" then add field2[1]
If field[2] = "selection2" then add field2[2]
If field[3] = "selection2" then add field2[3]

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Watch this eSeminar:
https://admin.adobe.acrobat.com/_a200985228/p87746471/

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script