-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors shown sequenced only 1 by 1 (not shown together) #173
Comments
The first argument in the callback will be an array of all the errors. Please post some example code or read the docs at http://rickharrison.github.io/validate.js/ |
:D Of Course i've read the doc also the page source of the demo page.
|
I have the same problem. Array of errors returns only the first element. |
I have the same issue. It works correctly in one form where it shows all the errors at once but it doesn't work in another one. The code is literally the same except there are 'depends' conditions on the form where all errors aren't being caught at once. Maybe that has something to do with it? Is there a fix to this? |
Everything is working on the demo page, so I would start by looking at that code and seeing how yours differs. If there is a bug, a pull request with a fix would be much appreciated. |
Here is my validation code. Please let me know if I should correct anything. Otherwise, I'll be happy to create a pull request. var tender_val = new FormValidator('hr-form', [{
|
Here is fragment of my code - it always stops on the first element that didn't pass validation and return an array with only this element not all of them.
|
I am using validate.js 2.0.1 |
@izotx @anushac243 In my case, all |
So when i make all fields to be required, e.g:
I tested them by sending empty fields (all of them). But the getErrors only gives first error. If everything empty, the error is on email. If email is not empty, then the error is on password, and so on.
It's OK. But i wonder, the demo shows all errors (not only 1 by 1). Trying to look into the page source, and i can't find what makes the demo detects all the error.
The text was updated successfully, but these errors were encountered: