Skip to main content
Dec 5, 2025 2:32 PM UTC
Answered

Dropdown list to match text field

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

 

 

PDF Automation Station
Community Expert
Dec 5, 2025 4:54 PM UTC

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
Dec 5, 2025 4:54 PM UTC

Enter the following custom calculation script in Text1:

var fld=this.getField("BuyerInfo");
event.value=fld.getItemAt(fld.currentValueIndices,false);
Translate
PDF Automation Station
Community Expert
Community Expert
Dec 5, 2025 4:47 PM UTC

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

Translate