Copy link to clipboard
Copied
How do you make another dropdown menu response and 2 text fields to be required if the 1st dropdown menu answer is yes. So, if someone answers "Yes" to a third party being involved, we need the next dropdown menu to be required, as well as 2 text fields to be required. Any help would be greatly appreciated.
Copy link to clipboard
Copied
You didn't specify the names of the fields involved, so I will give you a generic script that you will need to adjust with the actual field names. As the custom Validation script of the first drop-down you can use the following:
if (event.value=="Yes") {
this.getField("Dropdown1").required = true;
this.getField("Text1").required = true;
this.getField("Text2").required = true;
} else {
this.getField("Dropdown1").required = false;
this.getField("Text1").required = false;
this.getField("Text2").required = false;
}