I created a Combo Box in Adobe pdf listing Company Names in the Item field. As well, I added an abbreviation for each Company Name in the Export Value field. When I try to display the Company Name from the Item field, it displays the Export Value.
The Combo Box is named "Company-Name".
In it, I have a company called "MacKenzie" within the Item Field. It's Export Value is "MFC".
app.alert(this.getField("Company-Name").value); will display "MFC". How do I display or get the value from the Item field?
You can use the getItemAt field method, like:
// Get a reference to the combo box
var f = getField("Company-Name");
// Get the index of the selected item
var a = f.currentValueIndices;
// Show the item value of the selected item