Copy link to clipboard
Copied
Hello, I am currentlytrying to autopopulate dropdown boxes based upon one master dropdown box(Request).
The script I have so far is:
if (!event.willCommit) {
var ve = event.changeEx;
var f = this.getField("AS");
if (ve == "I") {
f.value = "NA";
}
else if (ve == "Q") {
f.value = "NA";
}
else if (ve == "L") {
f.value = "NA";
}
else {
this.resetForm([f.name]);
}
}
This script works for the set but I desire to create another script for another field based upon this masterdropdown(Request) list.
When I try to do so with the current code adjusting just the getfield I notice it negates some of the previously working code. Important to note that I copy this code and only chance the getfield and paste it in.
Any and All advice would be greatly appreciated.
Copy link to clipboard
Copied
I am using Adobe Acrobat Pro DC 2021
Copy link to clipboard
Copied
To see how the complete code is walking on itself we'd need to see the complete code. Post the whole script you are using. Also you need to explicit about where the script is placed. It appears to be a keystroke script.
Copy link to clipboard
Copied
Hello, I actually ended up figuring this one out on my own.
Once I read up on if/else statements I was able to work it out.
Thank you for your assistance though!
Copy link to clipboard
Copied
Mind sharing? I know it's been close to a year.
Copy link to clipboard
Copied
In response to your other post: