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!
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@";
}
Copy link to clipboard
Copied
Here's an article on exactly this topic.
https://acrobatusers.com/tutorials/change_another_field/