I have been able to successfully perform cross-field validation via @ScriptAssert, however, I would like to run multiple assertions instead of one. How would I do this?
Current code:
Code:
@ScriptAssert(lang="javascript",script="_this.emailAddress.equals(_this.confirmEmailAddress)",
message="Your Email Address and Confirm Email Address must match.")
However, I would like to put in another assertion that would check a zip field only if state is not null. I know I have seen this type of example before, but cannot find it now. Thanks...