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.

On Submit, Show Form With Values Still Intact

  1. noxbane
    Member

    I'm using Gravity Forms to show a Neighborhood Search form. See it here: http://bit.ly/MHdQxl (note if you actually try out the form, theres very little real data in the system so you'll get 0 results most of the time)

    Once the user fills out the form, I use a redirect and the "Pass Field Data Via Query String" option to get the information I need to use the Google Maps API javascript to populate the map.

    Anyway, if you notice, both the map and the form are on the same page. I'm simply redirecting back to the same page. However, I want the form to maintain it's state, which it does not currently do because of the redirect.

    Basically, all I need is for Gravity Forms to show the original form that was submitted instead of the Confirmation message, with its state maintained. My custom page template can handle the rest, by grabbing the submitted form values and building out the map code.

    Is this possible to do?

    Posted 11 years ago on Wednesday July 18, 2012 | Permalink
  2. David Peralty

    With how you set it up, you should just need to turn on "Allow Populate Dynamically" on the fields you want to re-get their values, and also give them the right query string variable names. So if I submitted New Hanover, I can see county=new-hanover in the query string. So you just need to select Allow Populate Dynamically for that checkbox field, and make it so it's variable is county.

    Let me know if this works out for you.

    Posted 11 years ago on Wednesday July 18, 2012 | Permalink
  3. noxbane
    Member

    That worked beautifully. I can't believe I didn't think of that before. Thanks a ton for the help David.

    Posted 11 years ago on Wednesday July 18, 2012 | Permalink
  4. David Peralty

    Glad to hear it worked.

    Posted 11 years ago on Wednesday July 18, 2012 | Permalink

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