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.

Form hook from landing to form page

  1. Hi,

    Im trying to create the following:

    1) landing page where user enters zip code to start the form process.
    2) once zip code is entered, the user hits a redirect which sends them to another form field, but with the zip-code already pre-populated in there

    is this possible with gravity forms?

    thx

    Posted 12 years ago on Tuesday April 17, 2012 | Permalink
  2. Yes, you would do this via dynamic population. Are you setting up a multi-step form or are you trying to go from one physical page to another?

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  3. I have the exact same question - I want the user to be able to enter the zip code on one page of the site (the zip code field is located in the header, so it can be entered from any page of the site). When the user clicks submit, it will take them to a separate page to complete the rest of the form, but the zip code field will already be populated. If you can explain how to do that I will be eternally grateful.

    site: http://www.boomerbenefits.com

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  4. To do that you will use dynamic population from one form to another. What you will need to do is set the confirmation redirect url/page to be that of your second form and then pass that data via the query string builder.

    Since you will have that data passed via the string, you can pre-populate the zip code on the second form with that data.

    Your second form's zip code field should be set to be populated dynamically and set a paramater name there which you will use in your first form's query string builder when you pass the zip code.

    http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population

    http://www.gravityhelp.com/documentation/page/Form_Settings (See Confirmation Redirect)

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  5. Thank you. Ok, I understand what you mean about setting the zip code field on the second form (we'll call it ContactUs) to be populated dynamically. I've done that and set a parameter called "yourzip".

    If I'm understanding correctly, I need to create an additional form (we'll call it ZipCode) and set the confirmation to go to the page the ContactUs page. And by adding /?yourzip=value to the end of that redirect my understanding is that the zip code field will be populated with the input value from the first page, correct?

    A couple questions:

    1) On the ZipCode form, do I also create a text field for zip code? I have already created an input box in my header with the instructions for the visitor to enter his/her zip.
    2) My main confusion is in your instructions about using the parameter "in your first form's query string builder". I've looked at the instructions and this part doesn't make sense to me - I don't understand how to build the query string.
    3) Finally, since the zip code will be entered from the header, would I put the query string into the header php? In that case, I wouldn't use the short code, correct?

    Sorry for all the questions. I'm not a complete newbie but am obviously still a WP amateur. Thanks.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  6. Yes, and you can see right now that is working:

    http://boomerbenefits.com/find-the-right-medicare-plan-for-me/?yourzip=visitorzip

    The Zip Code field is being populated with "visitorzip". Your header form is not a gravity form - so you will need to figure out how to pass the input value there. What I was suggesting was using a Gravity Form in the header, which would pass that zip code value to the next page/form.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink