have developed a simple form in Acrobat Pro xi. Need an example of javescript and where it should be placed. Form has three fields named: SpouseName, SpouseDOB, SpouseGender. All three fields are set to Not Required. If an entry is made in SpouseName, want to set SpouseDOB and SpouseGender to required. The form has a submit button on it and I assume that the code should go on a action on the submit but not sure. Any type of simple example will be greatly appreciated!
Use this code as the custom validation script of SpouseName:
this.getField("SpouseDOB").required = (event.value!="");
this.getField("SpouseGender").required = (event.value!="");
works great - THANKS!!!