I have combo box lists with values. I want to put the selection (not the value) in a textbox. I have only been able to get the value. What is the correct javascript to show the selection of the list, and not the export value?
I have combo box lists with values. I want to put the selection (not the value) in a textbox. I have only been able to get the value. What is the correct javascript to show the selection of the list, and not the export value?
if(!event.willCommit)this.getField("AreaAMathR").value = event.changeEx;
At other times you have to do a little work to get the display value. Take a look at these two articles:
http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/
http://www.acrobatusers.com/tutorials/2007/10/list_and_combo_in_lc/
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]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script