Skip to main content
Participant
June 2, 2025
Question

Help with drop down export

  • June 2, 2025
  • 3 replies
  • 356 views

 I have a list of names in a drop down. I have set the options to export an ID number specific to a name. I created text field 1 that auto fills per that export value. Currently in text field 1 i have a custom calculation script of event.value=this.getField("drop down").value;

I have now added a second text box and would like it to auto fill a title based on a name from the drop down.  But i cant seem to get 2 export values from the drop down.  The goal will be to select a name from the drop down list. Then have text field 1 auto fill id num and text field 2 auto fill title. Help!

3 replies

PDF Automation Station
Community Expert
Community Expert
June 2, 2025
PDF Automation Station
Community Expert
Community Expert
June 2, 2025

event.value = this.getField("drop down").getItemAt(this.getField("drop down").currentValueIndices, false)

Participant
June 2, 2025

Which place would i put this script? 

PDF Automation Station
Community Expert
Community Expert
June 2, 2025

A custom calcuation script in the text field (text field 2) where you want the dropdown display value to go.  Leave your script for the export value.

Bernd Alheit
Community Expert
Community Expert
June 2, 2025

As export value you can use something like this:

 xxxx|yyyy

and fill one text field with the first part and the other field with the second part.

Participant
June 2, 2025

And how do i dictate which goes to which text box?

PDF Automation Station
Community Expert
Community Expert
June 2, 2025

First value:

event.value=this.getField("drow down").value.split("|")[0];

Second value

event.value=this.getField("drow down").value.split("|")[1];