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.

Widget form working but not showing confirmation message

  1. I have a mailchimp form in a sidebar widget. Form submission is working (email gets added in mailchimp), however there is no confirmation on submit. Both text confirmation and confirm page aren't working (Ideally, I'd like to use text confirmation).

    The form Settings confirmation is set to "Text" with some text entered.

    Enable AJAX is checked in widget settings.

    WP 3.2.1
    Gravity 1.6.1

    Posted 12 years ago on Thursday December 1, 2011 | Permalink
  2. Hard to tell what is happening without being able to see the form, form settings, and widget setup. There isn't any known issue related to using form widgets.

    Send me an email at carl@rocketgenius.com and provide me with a WordPress admin login for the site, let me know which form and where the widget is and i'll be glad to take a look and see what is going on.

    Posted 12 years ago on Thursday December 1, 2011 | Permalink
  3. The issue is a JS error causing problems with the AJAX which utilizes jQuery. There are actually 2 errors. Here is a screenshot of the errors on the page:

    http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202011-12-19%20at%2012.18.51%20AM.png

    The first error is the main problem. Your site is loading jQuery in the footer. This causes a problem because the AJAX requires jQuery to be loaded in order to execute. Because jQuery is loaded in the footer, this means jQuery isn't loaded when the form attempts to execute the AJAX. The solution to this is to enqueue jQuery in the header, rather than the footer.

    Typically calling jQuery in the footer is acceptable. But anytime there is any kind of inline jQuery, it must already be loaded for it to work. Currently because of the nature of the AJAX it loads some in line jQuery and because jQuery isn't loaded yet, it causes an error.

    The other error is coming from skeleton-key.js and is related to something called tipsy. I don't know what that is. But you'll want to get it fixed because any JS errors can cause problems with form elements that use JS due to the fact the browser will quit executing JS if there is an error.

    We do plan on updating Gravity Forms so that the AJAX functionality supports jQuery being loaded in the footer, however it will require refactoring how we implement some functionality so it isn't something we will be introducing until sometime next year due to the core changes required.

    Posted 12 years ago on Monday December 19, 2011 | Permalink