Skip to main content
Participant
January 14, 2019
Answered

Fill in multiple text fields based on selection from drop-down

  • January 14, 2019
  • 1 reply
  • 836 views

Hello.  I am attempting to have 3-6 different text fields automatically populate with pre-determined information based on the user's selection in a drop-down menu.  For example, my drop down will have Red, Blue, Green, Yellow.  If the user selects Red, then Text1 will fill in Apple, Text2 will fill in Fire Truck, Text3 will fill in Rose and Text4 will fill in Tomato.  If the user selects Yellow from the Drop Down, then Text1 is banana, Text2 is sun, Text3 is also banana and Text4 is lemon.  I know it involves JavaScprit, but to be honest, I'm a novice when it comes to that.  Any help would be greatly appreciated!

This topic has been closed for replies.
Correct answer Thom Parker

Here's an article on just this topic, and it comes with a sample file:

https://acrobatusers.com/tutorials/change_another_field

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
January 14, 2019

Here's an article on just this topic, and it comes with a sample file:

https://acrobatusers.com/tutorials/change_another_field

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
January 14, 2019

Thanks for the link. I actually found that before, but got stuck at Step 10 - it only refers to Acrobat 7 Pro and Acrobat 8 Pro. My version says Adobe Acrobat Pro DC. Can anyone provide "step 10" for my version? Thank you!

try67
Community Expert
Community Expert
January 14, 2019

You'll find it under: Tools - JavaScript - Document JavaScripts...