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.
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