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

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

Views

245

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
Community Expert ,
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@";

}

Votes

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
Community Expert ,
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

Votes

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