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 mode interferes with jQuery autocomplete?

  1. Lea Cohen
    Member

    I'm using gravity form with the ajax mode turned on. When the form is filled, one of the fields has jquery's autocomplete attached to it, and it works fine.
    However, if the user submits the forms and there are errors in it, then the autocomplete doesn't work anymore.
    What can I do?

    Posted 9 years ago on Monday August 6, 2012 | Permalink
  2. I believe you want to take a look at this jQuery hook:
    http://www.gravityhelp.com/documentation/page/Gform_post_render

    Posted 9 years ago on Monday August 6, 2012 | Permalink
  3. Lea Cohen
    Member

    Thanks, I'll try it. But I would just like to understand: where in the functions.php would I put it?and why not just put that code in a js file?

    Posted 9 years ago on Monday August 6, 2012 | Permalink
  4. Because you can apply this hook to a specific form or for all forms for that matter, it can be placed at any spot - the bottom should be fine. You could probably also place this into a JS file - we just reference the functions file for people who might not be so savvy to try to do that.

    All this hook does is reinitialize custom scripts on things like error messages. In your case you would just be reinitializing your auto completer.

    Posted 9 years ago on Monday August 6, 2012 | Permalink
  5. Lea Cohen
    Member

    Thank you very much. I put in my JS file, and it works like a charm!

    Posted 9 years ago on Monday August 20, 2012 | Permalink
  6. Thank you for the update.

    Posted 9 years ago on Monday August 20, 2012 | Permalink

This topic has been resolved and has been closed to new replies.