Copy link to clipboard
Copied
I have a drop down box (Dropdown3). The values in this drop down are as follows: red with an export of 1, blue with an export of 2, green with an export of 3...
On other pages of the pdf there are text boxes where the export value is automatically entered based on the drop down box selection. So if the user selects "red" the text box shows "1".
we now need to create a new text box that combines a few fields to make a single entry. On of the entries needs to be the display item from Dropdown3 - NOT the export value. So for example if dropdown3 is "red", the new text box would need to show "red" and not 1. I have looked and looks but I can't seem to find the solution.
Copy link to clipboard
Copied
You need to use currentValueIndices.
EDIT:
something like this as "validation script":
var f = getField("Dropdown3");
var a = f.currentValueIndices;
var x = f.getItemAt(a, false);
event.value = x;