Skip to main content
Participant
August 15, 2023
Question

Drop-down selection result shows in another text field

  • August 15, 2023
  • 2 replies
  • 355 views

Hello!

 

I have a fillable PDF started. I am working to have the result from a drop-down list (e.g., yes or no), display in another area of the pdf form (as is no changes). How do I go about that? 

This topic has been closed for replies.

2 replies

Nesa Nurani
Community Expert
Community Expert
August 15, 2023

You can use 'custom calculation script' of text field:

event.value = this.getField("Dropdown field name").value;

Participant
August 15, 2023

 

Thom Parker
Community Expert
Community Expert
August 15, 2023

For this type of operation I prefer to use a validation script on the dropdown. 

 

this.getField("TargetField").value = event.value;

 

This is a much more targeted script.  A calculation is triggered anytime any field on the form is changed. Every calculation makes the form slower. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often