Skip to main content
jessicad96383906
Participant
February 14, 2020
Question

DEPENDENT DROP DOWN HELP!

  • February 14, 2020
  • 1 reply
  • 488 views

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! 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 14, 2020

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@";

}

Thom Parker
Community Expert
Community Expert
February 17, 2020

Here's an article on exactly this topic.

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

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