Skip to main content
Inspiring
December 5, 2025
Answered

Dropdown list to match text field

  • December 5, 2025
  • 2 replies
  • 146 views

I'm trying to get a drop-down list item and a text field to be the same. The issue I'm running into is that instead of the drop-down list choice, I'm getting the export value of the drop-down list in my text field.

 

drop-down list name: BuyerInfo

text field name: Text1

867971i5C0E83D353B78AAC.png

 

 

Correct answer PDF Automation Station

Enter the following custom calculation script in Text1:

var fld=this.getField("BuyerInfo");
event.value=fld.getItemAt(fld.currentValueIndices,false);

2 replies

PDF Automation Station
Community Expert
Community Expert
December 5, 2025

Enter the following custom calculation script in Text1:

var fld=this.getField("BuyerInfo");
event.value=fld.getItemAt(fld.currentValueIndices,false);
PDF Automation Station
Community Expert
Community Expert
December 5, 2025

Are you using a calculation script in Text1, or a validation or keystroke script in the dropdown?  Which one do you want to use?