How do I make a field required if a checkbox is checked?
In X Pro, if a "Y" checkbox is checked, I need to have other corresponding fields (1000g, 2000g, 3000g) related to that checkbox 'required'. If not checked, then no requirement.
In the "Y" checkbox, I've included the following javascript but it's not working. Any ideas?
if(event.value == "Y") {
this.getField("1000g").required = true;
this.getField("2000g").required = true;
this.getField("3000g").required = true;
} else {
this.getField("1000g").required = false;
this.getField("2000g").required = false;
this.getField("3000g").required = false;
}
Tracy Godfrey