I need help, retrieving a combo boxes actual value, not the export value.
I have a combo box with multiple options to select from.
each of those selections has a separate export value, which is in the form of a number, which I use to calculate dates in a separate field.
However, I have another field that i want to retrieve the, users selected value, which is text, from the combo box instead of the export value.
Is there an easy way to do this.
This is what I am currently using. But like I said the results are that I retrieve the export value and not the selected text value.
event.value = this.getField("_Arugula").valueAsString;
First get the currentValueIndices property of the combo box and use it with the getItemAt field method to return (what I call) the display value. Something like:
var f = getField("combo1");
var display_value = f.getItemAt(f.currentValueIndices, false);
See the documentation for more information