Hi.
I am trying to capture the display text of a drop down field in which each display field has a different value. Actually I want to capture both values and place in a separate field.
So the drop down list consists of text/value and I'm trying to do this on the change event of the DD. I can get the value easy enough using:
textfield1.rawValue = this.boundItem(xfa.event.newText);
But I can't capture the displaytext. I know there is a getDisplayText option but in order for that to work you have to know the selectedIndex number which seemed easy enough but oddly that number is not available until/unless I change the value a second time wherein I get the previous selectedIndex number. Been racking my brain for several hours on this and not making any progress. Any help would be appreciated. Thanks.
You also might want to read both parts of this article, the bits on LiveCycle forms:
http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle/
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script