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.

gform_confirmation 'Stuck' Issue

  1. Hi,

    I've been using the gform_confirmation hook to change the confirmation message. The modified message appears, but instead of appearing on it's own confirmation screen it appears beneath the form content on the last page (with the spinner still going).

    No JS errors are recorded, but the gform_confirmation_loaded JS function is never fired? As soon as I attempt to change the confirmation message (e.g. using the same example function from http://www.gravityhelp.com/documentation/page/Gform_confirmation ), the same thing happens across every form.

    Not sure what else to try?

    Posted 12 years ago on Monday August 1, 2011 | Permalink
  2. Please post any custom code you have implemented to http://pastie.org and provide the link here so we can also see what custom code you are executing.

    Posted 12 years ago on Monday August 1, 2011 | Permalink
  3. Code: http://pastie.org/2305858
    Website: http://bit.ly/qcqgug (not our design or structure)

    Thanks

    Posted 12 years ago on Monday August 1, 2011 | Permalink
  4. Just to expand on this the form data is submitted to the database.

    Posted 12 years ago on Tuesday August 2, 2011 | Permalink
  5. In your first message you stated "the same thing happens across every form". You need to change the gform_confirmation to something like gform_confirmation_4 where 4 is your form number. Otherwise the filter is applied to all forms.

    add_filter("gform_confirmation", "custom_confirmation",10,4)

    Change it to look like this, where the 4 is your form number

    add_filter("gform_confirmation_4", "custom_confirmation",10,4)

    Looking into the rest right now.

    Posted 12 years ago on Tuesday August 2, 2011 | Permalink
  6. I can see the issue on your site, but I can't replicate it locally. I will need to take a closer look at your site to see where the problem is. If you can send me a login to your WP dashboard and FTP to alex@rocketgenius.com , I would be happy to take a look and see what is causing the problem.

    Posted 12 years ago on Tuesday August 2, 2011 | Permalink
  7. Hi all,

    Thanks for the quick replies and advice.

    @Chris Hajer
    Thanks Chris. I worded my original question a bit poorly. Pretty much I configured each form to call it's own gform_confirmation_2 (etc) script, but set the global gform_confirmation in place for testing purposes.

    The issue seems to be solely AJAX related as I was using the shortcode:

    [gravityform id=1 title=false description=false ajax=true]

    With the AJAX enabled the form would get stuck when calling a custom confirmation message. With the AJAX switched off the functionality is as expected.

    I tried a fresh installation of Wordpress with no plugins installed and the same issue occurred with AJAX switched on.

    I'm happy for the forms to have AJAX disabled, so thanks for the help.

    Posted 12 years ago on Wednesday August 3, 2011 | Permalink

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