How to write validation script for one dropdown that is conditional based on another dd's selection
There are two different dropdowns (named "dd1" and "dd2") with the same 13 selections ("a" through "m")
When "a" or "b" is selected, a hide field should to appear.
Example script for both dd1 and dd2:
if((event.value =="a") || (event.value =="b")) {
this.getField("Hide").display = display.visible;
} else {
this.getField("Hide").display = display.hidden;
}
This script works for both dropdown's, however, if the selection for "dd1" was NOT
"a" or "b", the hide field needs to stay hidden even if "a" or "b" is selected from "dd2".
Is there a way to add this condition to the validation script for "dd2" (i.e., reference "dd1" and it's selections)?
Any help would be appreciated!
