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

Drop-down list used to populate with a multiple sentence message

rbroyles
Registered: Dec 29 2006
Posts: 17

In LiveCycle Designer

I want to use the drop-down list to then populate a multiple sentence response. I know this will need to be done with script but I am not sure how to start. Example In the drop-down list I would have a reference (LN4) and if this was chosen it would populate a field with a multiple line instruction. Any hlep would be greatly appreciated.

Thanks
Richard

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Look at this article:

http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/

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

rbroyles
Registered: Dec 29 2006
Posts: 17
Not sure how to make this apply to what I want. What I want is a drop down with several error codes in it. This drop down would not be visible on the form when it is sent. When error code 7N4 is selected a Text Field would then be populated with an explanation of the error and how to correct the issue. There would never be more than one error code chosen at a time.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Part of what the article shows is how a list selection can be used to select information out of a data structure. This information is then used to popupate another field. The data structure is useful when the data is complex or large. I get the impression that in your case it's large. Like a paragraph. Your strategy could be to place all these long errror messages into an object in a top level scripting object, where the name of each entry in the object is the selection from the dropdown list.

make sure you look at both articles, Parts 1 and 2. Each shows different strategies for dealing with lists.

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