Copy link to clipboard
Copied
Hi, can someone please help?
I have a PDF form with actions in fields. One field has drop down options to select, six of them. I'm trying to have each option trigger options for another drop down field. Is this possible? Can someone help me with the script with this? Once I have the script, I think I put it in the validate section.
I appreciate any help.
G
Copy link to clipboard
Copied
It's possible, but you need to tell us more information, like field names, selections in dropdown and what exactly you need to happen.
Copy link to clipboard
Copied
Thank you for your reply Nesa! The field name is " building name" and the selections in the drop drop down are:
Pemberton
Baker Science
Union
McLeod
Library
Smith Nooks
Below are the options, I wanted to pop up for each selection
Pemberton - auditorium, conference room
Baker Science - auditorium, classroom
Union - cafeteria, ballroom, conference room, basement
McLeod - Innovation Lab, Lab room
Library - Upstairs area, downstairs area
Smith Nooks - Conference Room
and they select the specific room depending on which option they choose. I appreciate your help!
Copy link to clipboard
Copied
As the custom Validation script of the first field you can use something like this:
if (event.value=="Pemberton") this.getField("Dropdown2").setItems(["auditorium", "conference room"]);
else if (event.value=="Baker Science") this.getField("Dropdown2").setItems(["auditorium", "classroom"]);
//etc.
Copy link to clipboard
Copied
Thank you thank you !!! I will try this
Copy link to clipboard
Copied
PS. If you don't want the first item to be selected by default add an empty string (or something like "Select") as the first item in each array.
Copy link to clipboard
Copied
thank you for this! I didn't know what 'select' would be called, I learned something new 'empty string', I'll come back with how it worked out
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more