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

Using javascript to retrieve the current display value of a Combo Box

jwasser813
Registered: May 8 2006
Posts: 1

Is it possible to retrieve the current or selected value in a combo box or list box.

I know you can retrieve the export value using 'this.getField("FIELDNAME").value;', but I need the display value which is different. Is ther a different param or property for 'getField'?

Any help would be greatly appreciated.

Jonathan

My Product Information:
Acrobat Pro 9.3.1, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You should look at using the 'currentValueIndices' property of the field object to get the index number for the selected item/items and the 'getItemAt()' method of the field object to get the item name when the optional 'bExportValue' option is true.

George Kaiser