Link to home
Start Free TrialLog in
Avatar of zurichexpat
zurichexpat

asked on

Filling other fields automatically based on an answer selected from a drop down menu?

I am creating a PDF document with teacher's names and I have created a drop down menu of the names. I would like another field to populate with the teacher's full address is their name is selected. This is my first attempt at using JavaScript and I have no idea where to put what and how. Thanks for your help!
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Here is the funny thing--I too "have no idea where to put what and how".  You would need to give us a little more information, please.
Avatar of zurichexpat
zurichexpat

ASKER

:-) right. One field would be a drop down menu of names and I would also like to have another field labeled address that is automatically populated with the address that corresponds to the name picked from the drop down menu. I don't have any more information than that.

Thanks.
1) Did you want to use plain JavaScript or JQuery?

2) What do you need to know to get started?  Do you need to know the syntax for creating a script block?
I would like to use plain JavaScript.

I would like to know what the syntax is for creating the script and where do I add it into the document or what are the steps to adding it i.e., create custom action, etc.?

Thanks.
What I guess I am trying to find out, is how much do you already know?  

1) Have you started looking at any tutorials?

JavaScript basics
https://developer.mozilla.org/en-US/Learn/Getting_started_with_the_web/JavaScript_basics

2) What are you using for a development environment (Visual Studio, Eclipse, ...)?
I know very little. I found this post here:

https://www.experts-exchange.com/questions/23879710/Populate-a-PDF-form-field-based-on-drop-down-selection.html

...and think this is what I need to do but I was confused as to where this string would go in the PDF.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your help. Apologies for the goose chase.