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.

Stay on form after submission

  1. ghalleb
    Member

    Hi,

    I want to stay on my form after submission.
    Putting the form shortcode in the text confirmation did the trick but the form are populated with previous value, even if I use a pre_render filter.

    Is there a way for old value not overwriting my value populated by my pre-render filter?

    Posted 11 years ago on Saturday December 15, 2012 | Permalink
  2. David Peralty

    Instead of putting the shortcode in the text confirmation, you could redirect back to the page which would start Gravity Forms building the form from scratch.

    Posted 11 years ago on Monday December 17, 2012 | Permalink
  3. ghalleb
    Member

    I want to use Ajax for this. I don't want to reload the full page which is quite bit

    And my form is inside a Tab, so it will not be usefull at all to reload the full page.

    At which phase are the field populated? Perhaps it coul be possible to hook it.
    It's quite strange because I populate the field in the pre_render and they are still overwritten...

    Posted 11 years ago on Monday December 17, 2012 | Permalink
  4. David Peralty

    Pre-render isn't really happening because of how forms on the web works, the form never gets destroyed, and thus never re-built, hence your issue.

    Posted 11 years ago on Monday December 17, 2012 | Permalink
  5. ghalleb
    Member

    So what is the solution?

    It's a critical issue for me, I need the ajax conversation and I need to repopulate the fields.

    In fact calling the shortcode should give me back a brand new form, not the same one. It seems like a bug to me It should act like a redirection on the same page.

    Do you know in which file I could take a look in order to make it work for me?

    Posted 11 years ago on Wednesday December 19, 2012 | Permalink
  6. ghalleb
    Member

    I made a test, the pre-render function is called.

    So there must be somewhere where the fields are overwritten.

    Posted 11 years ago on Wednesday December 19, 2012 | Permalink
  7. @ghalleb, I am going to close this topic and we will focus support for your issue here:
    http://www.gravityhelp.com/forums/topic/bug-with-ajax-and-shortcode-confirmation#post-103040

    Posted 11 years ago on Wednesday December 19, 2012 | Permalink

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