Skip to main content
amandas83818402
Participating Frequently
July 24, 2019
Answered

Javascript in PDF Form for changing one field based on another field's dropdown selection

  • July 24, 2019
  • 1 reply
  • 697 views

I want the selection of a dropdown field to change another field based on it's selection....for example, if I select Administrative Services, I want contact info for that selection to populate other fields.  After tons of research, trial, and error, I'm close but the code only works if the selection is one word, such as Accounting.  How can I get it to recognize selections that are more than one word?

I was able to mostly build what I need using the following link as an example: https://acrobatusers.com/tutorials/change_another_field

Thanks, in advance.

This topic has been closed for replies.
Correct answer try67

Put the text inside of quotes, like this: "Human Resources"

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
July 24, 2019

Put the text inside of quotes, like this: "Human Resources"

amandas83818402
Participating Frequently
July 24, 2019

That worked!  Thank you!