Copy link to clipboard
Copied
I have 2 dropdown fields in my form.
Are you using multiple columns? Yes or No are the options.
The next column asks How many? with options of 2, 3, or 4.
I'd like to have the second dropdown grayed out or auto default to 1 if No is selected in the first dropdown.
any help would be appreciated.
Lets say second dropdown name is "Dropdown2", as validation script of first dropdown use this:
if(event.value == "No")
this.getField("Dropdown2").value = "1";
Yes, if you want to show 1 then that needs to be an option in Dropdown2.
Copy link to clipboard
Copied
Lets say second dropdown name is "Dropdown2", as validation script of first dropdown use this:
if(event.value == "No")
this.getField("Dropdown2").value = "1";
Copy link to clipboard
Copied
Yes, the fields are named Dropdown1 and Dropdown2, however, that did not work. do I need to have 1 as an option in dropdown 2?
Copy link to clipboard
Copied
Yes, if you want to show 1 then that needs to be an option in Dropdown2.
Copy link to clipboard
Copied
Great, Thanks that worked!