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.

How can I show the form after submission?

  1. I want to redisplay my form that is using AJAX to submit.

    Posted 11 years ago on Saturday May 28, 2011 | Permalink
  2. Andrew Munro
    Member

    I'm wondering how i can do this also. Using ajax for form submission. Would be great to keep the form visible just in case a user needs to send another message (without having to refresh the page).

    Posted 11 years ago on Friday June 17, 2011 | Permalink
  3. AJAX doesn't keep the form visible, AJAX submits the form without submitting the entire page or reloading the entire page. The confirmation message is then instantly displayed. The form itself goes away and is replaced by the confirmation message. The form will redisplay if the page is refreshed.

    We can look into doing modal window style confirmation messages in a future release, which would allow the form to continue displaying and the confirmation message appear in a modal window. But currently this isn't a feature.

    Posted 11 years ago on Friday June 17, 2011 | Permalink
  4. Yes, it would definitely be nice to have the response message not overwrite the form. I'm going to have to do some hacky code to enable this as its something I need or I will have to not use gravityforms ><

    Thanks for your time!

    Posted 11 years ago on Saturday June 18, 2011 | Permalink
  5. Has there been any news on this issue? I would really love this implementation? I know this was 5 months ago which is why im asking. :)

    Posted 10 years ago on Friday December 9, 2011 | Permalink
  6. Hi umarglobal,

    Rather than displaying the form immediately after submission, I have a snippet that lets you add a link to the confirmation message which allows you to reload the form to submit again. Here is a quick screenr to visually demonstrate this and the snippet as well:

    http://www.screenr.com/FGfs
    http://pastie.org/2997231

    You'll want to paste the snippet in your theme's functions.php file and update the "115" in "gform_pre_render_115" to the ID of your form.

    Posted 10 years ago on Saturday December 10, 2011 | Permalink
  7. sidjags
    Member

    hey david... could you please explain how to use your code-snippet a little better... when i put it in my functions.php file (and also change the form id)... i get a blank screen.

    Posted 10 years ago on Monday December 12, 2011 | Permalink
  8. Hi sidjags,

    If you're pasting the snippet inside an existing <?php ?> block, you'll want to remove the opening <?php block from my pasted snippet. Let me know if you're still experiencing issues.

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

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