It is possible to validate with AJAX, but it will take quite a bit of work. To do it, you will need to do the following:
1- Use the "gform_form_tag" filter and add a onsubmit='ajaxValidate();' attribute, or something like that
2- Implement the ajaxValidate(); function call by posting the proper fields (the ones requiring validation) to your ajax handler page.
3- Implement a callback function that will take the results from teh ajax handler page and update the page with the proper error messages, or submitting the form if there are no errors.
I hope this helps.
Good Luck!
Alex.
Posted 14 years ago on Tuesday May 11, 2010 |
Permalink