PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Ajax validation

  1. mkyrk
    Member

    Is it possible to validate the forms using ajax*?

    or i can extract the code of the form or obtain the form value of the label "action" to send or validate with ajax*?
    because they note that the demo version the "action" label its empty

    (i prefer jquery framework)

    Posted 13 years ago on Tuesday May 11, 2010 | Permalink
  2. 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 13 years ago on Tuesday May 11, 2010 | Permalink