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

New Here ,
Jan 14, 2019

Copy link to clipboard

Copied

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!

Adobe Community Professional
Correct answer by Thom Parker | Adobe Community Professional

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

https://acrobatusers.com/tutorials/change_another_field

TOPICS
Acrobat SDK and JavaScript, Windows

Views

94

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

New Here ,
Jan 14, 2019

Copy link to clipboard

Copied

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!

Adobe Community Professional
Correct answer by Thom Parker | Adobe Community Professional

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

https://acrobatusers.com/tutorials/change_another_field

TOPICS
Acrobat SDK and JavaScript, Windows

Views

95

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 14, 2019 0
Adobe Community Professional ,
Jan 14, 2019

Copy link to clipboard

Copied

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

https://acrobatusers.com/tutorials/change_another_field

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 14, 2019 0
New Here ,
Jan 14, 2019

Copy link to clipboard

Copied

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!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 14, 2019 0
Most Valuable Participant ,
Jan 14, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 14, 2019 1
New Here ,
Jan 14, 2019

Copy link to clipboard

Copied

THANK YOU!!!  So appreciate the help from both of you!

[ private informations removed by moderator --> https://forums.adobe.com/docs/DOC-3731 ]

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 14, 2019 0