Is there a way to set a validation callback that is not bound to a particular field, but is necessary to pass validation?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add a hidden field to your form andassign the callback tothata field. The callback doesn’t have to relate to the contents of thehiddenfield.Edit: Or, for that matter, you could assign the callback to any of your fields along other validation rules. No need for a hidden field.