Skip to content
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

Ajax field validations are being run on form submit #585

Closed
ryanm89 opened this issue Jan 16, 2013 · 3 comments
Closed

Ajax field validations are being run on form submit #585

ryanm89 opened this issue Jan 16, 2013 · 3 comments

Comments

@ryanm89
Copy link

ryanm89 commented Jan 16, 2013

Hello,

You may be aware of this given the other ajax fix requests, but I thought Id bring it up. On our pages, all ajax field validations are being run when the page is submitted, even if form validation is turned off. If I have 13 fields on the page and form validation turned on, I get 14 ajax requests to my server (13 fields and the form). Also when I submit the form Im getting some kind of infinite loop on the ajax fields I think because its expecting a list since its a form submit. I need to detach validation or else it crashes my server. It looks like the problem can also be seen on the demo page.

@ryanm89
Copy link
Author

ryanm89 commented Jan 17, 2013

Just one more note. On the ajax field validator for input boxes, lets say it returns that fieldA is required. It will give the appropriate message. But if I then click off of the field after the message is given, while leaving the field empty, the error message disappears and does not come back, even though another call was made to the server and the same 'required' error was returned back. If I put a space in the input box " " then the error message stays.

@TroyWitthoeft
Copy link

Any progress on this? I am observing the same behavior on Validation Engine 2.6.2
Update: Check #608 and #609 for a solution.

@posabsolute
Copy link
Owner

Yup I know the ajax stuff is fucked up, my recommendation for now is to do it manyally using onValidationComplete I am currently trying to unshit that spagetti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants