Skip to main content
Participant
August 27, 2025
Answered

How can I populate a field from a separate dropdown list

  • August 27, 2025
  • 3 replies
  • 247 views

Hi community, I am trying to create a PDF where if i select something from a drop down list it populates a seperate field with a value relating to the selection.

 

Example:

 

If I select TFX11 in the drop down list I would like to populate a seperate field with the value MEL

If I select TFX12 in the drop down list it populates the seperate field with the value PER

If I select TFX21 in the drop down list it populates the seperate field with the value SYD

 

Any help would be greatly appreciated as Im tearing my hair out with it!!!

Correct answer PDF Automation Station

Use TFX11, TFX12, TFX21 as the display values and MEL, PER, and SYD as the corresponding export values (options tab of the dropdown field properties).  Then in the field you would like to populate, enter the follow script:

event.value=this.getField("Your Dropdown").value;

Alternatively you can use a custom keystroke script in the dropdown if you want the user to be able to change the populated value:

https://pdfautomationstation.substack.com/p/calculation-vs-validation-scripts-eb5

 

3 replies

Participant
August 27, 2025

Thanks for all your help. I Got it working. Cheers

PDF Automation Station
Community Expert
Community Expert
August 27, 2025

Use TFX11, TFX12, TFX21 as the display values and MEL, PER, and SYD as the corresponding export values (options tab of the dropdown field properties).  Then in the field you would like to populate, enter the follow script:

event.value=this.getField("Your Dropdown").value;

Alternatively you can use a custom keystroke script in the dropdown if you want the user to be able to change the populated value:

https://pdfautomationstation.substack.com/p/calculation-vs-validation-scripts-eb5