• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Get the display value instead of export value

New Here ,
Apr 26, 2021 Apr 26, 2021

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.

TOPICS
JavaScript

Views

473

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

LATEST

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;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines