DEPENDENT DROP DOWN HELP!

New Here ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

Hi,

I am hoping someone can help me ASAP! I need to program an Interactive PDF that I am creating via inDesign that has 2 dependent fields derived from the answer selected from a drop down list. This is what I need :


Catagory 1

Steel Raw Material

Axle Tubes

No-Axle Tubes

....

 

Category 2 

John Smith

Jane Doe

John Deere

...

 

Category 3

john.smith@

jane.doe@

john.deere@

 

Basically if you choose from Category 1 I need Category 2 and 3 to autopopulate specific names.

Example: If Cat. 1= Steel Raw Material than Cat 2 + 3 = John Smith + john.smith@

 

I am not a coder, so any help is greatly appreciated! 

TOPICS
Acrobat SDK and JavaScript, Create PDFs, How to, PDF forms

Views

40

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
community guidelines
Adobe Community Professional ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

You can use a simple script to do it, as the custom validation code of Category 1. The other fields don't need to be drop-downs, though. They can just be text fields. The basic code would be:

if (event.value=="Steel Raw Material") {

this.getField("Category2").value = "John Smith";

this.getField("Category3").value = "john.smith@";

}

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
community guidelines
Adobe Community Professional ,
Feb 17, 2020 Feb 17, 2020

Copy link to clipboard

Copied

LATEST

Here's an article on exactly this topic.

https://acrobatusers.com/tutorials/change_another_field/

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

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
community guidelines