Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

DEPENDENT DROP DOWN HELP!

New Here ,
Feb 14, 2020 Feb 14, 2020

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
405
Translate
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
Community Expert ,
Feb 14, 2020 Feb 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@";

}

Translate
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
Community Expert ,
Feb 17, 2020 Feb 17, 2020
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

Translate
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