Validation happens on the server, after the form has been submitted, so at that point it is too late to do anything on the original page in the browser. You could run some JS on the returned page after it loads, or put the form in an Ajax component and put some code in response.js to run when the submission response is returned. Hard to say without knowing in more detail what you're trying to do.
Anthony On Monday, February 24, 2014 11:37:07 AM UTC-5, EW wrote: > > I have a web2py form (sqlform.factory to be specific). After all the > fields have been validated, I would like to call a javascript function > using the form values as arguments. How can I do this? When I have a > jquery event handler for the form submit, it gets called anytime the submit > button is clicked, but I need something triggered only once all the fields > have been validated. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

