I have a form with both a submit and cancel button. I am performing validation on multiple fields when they lose focus and when the form is submitted. Is there anyway to bypass validation when the cancel button is clicked?
I found this post in the forum with a similar problem but I am not sure what they mean by not attaching the validator to the form element. I have looked at the samples and I believe I am doing the same thing. However, my data is still be validated when I click the cancel button.
After some more reading and trial and error, I did get this to work like explained in the question linked in my previous post. I simply chose another "container" when attaching my validator. I then had to add onclick logic to my buttons where I wanted validation to occur.