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

Drop Down Box with different output than list item

HiFiBlaster
Registered: Jan 30 2008
Posts: 2

I'm am new to this program so please forgive my iggnorance. I am attempting to create drop down menus on a file that when one item is selected it will give display a different value. I'll try to explain further.

The file I am creating uses numeric codes for specific items. For example "01" might be the code for "straight". On my drop down menu I have the item "01 straight". I want it to display only the 01 in the form when the user selects it. Is there any way to do this? I have Acrobat 8.0 Professional and LiveCycle so I can utilize either program. Thanks.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So you want the pull down list to display a different set of items than is shown in the text box. The only way you could do this is with JavaScript.

Place the following code in the "Validate" event for the drop down.

if(this.rawValue)
this.rawValue = this.rawValue.split(" ").shift();
true;

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