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.

Passing Form Values from Confirmation Page

  1. Susan
    Member

    Hello there! I am building a registration form that will be used to register multiple persons from the same company. I am hoping there is a way to use dynamically populated fields to make this process more efficient.

    After submission, I would like the form to redirect to a confirmation page that provides a link to register another person from the same company. This link would direct to the same form with the company information dynamically completed from the previous submission.

    Is this possible with Gravity Forms? Can I create a URL for the confirmation page that will pass the values back to the same form?

    Thank you for your help.

    Posted 11 years ago on Monday January 7, 2013 | Permalink
  2. Of course. Do you have any URLs for the pages with forms you have online now?

    The process is documented here: http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population Have you already tried any of these methods?

    Posted 11 years ago on Monday January 7, 2013 | Permalink
  3. Susan
    Member

    Thanks for the speedy reply. Here is the link to my test form:

    http://ooga.org/events/ooga-events/2013-annual-winter-meeting-test/registration/

    It currently displays a simple confirmation message when submitted. I would like to add a link to "Register another person from the same company". When this link is followed, the company and address fields would be dynamically populated with the values from the previous submission.

    I have set the form fields to populate dynamically. However, passing the values to the confirmation page and then back to the form is new territory for me. I assume the "Register another person from the same company" link would need to be a query string generated from the previous submission, but I am a little lost on how to put that together.

    Any help would be appreciated!

    Posted 11 years ago on Monday January 7, 2013 | Permalink
  4. I assume the "Register another person from the same company" link would need to be a query string generated from the previous submission,

    That is exactly correct. You need to build the query string of values which were just submitted, and use that in your confirmation link. I normally temporarily use the "Redirect" confirmation option, and the "Pass Data Via Query String" link as a tool to build my query string with the drop down for merge tags. Then, copy that query string and add it to the URL of the page where your form exists. Give that a try and see if it makes sense once you start on it.

    Posted 11 years ago on Monday January 7, 2013 | Permalink
  5. Susan
    Member

    Okay, I successfully passed the data to my confirmation page, generating the following URL string:

    http://ooga.org/events/ooga-events/2013-annual-winter-meeting-test/registration-confirmation/?company=Company&street=5970+Cat+Run+Road&address_2&city=Granville&state=Ohio&zip=43023

    My problem: How do I then pass these values back to the registration form? I need a link back to the form that also has a query string. But how do I build this string?

    If testing the form would be helpful, you can submit and select "Send me an invoice". This is simply a test form and only the address/company fields are required at the moment.

    Posted 11 years ago on Monday January 7, 2013 | Permalink
  6. OK, you're doing great so far.

    If this appears in your confirmation text:

    <a href="http://ooga.org/events/ooga-events/2013-annual-winter-meeting-test/registration-confirmation/?company=Company&street=5970+Cat+Run+Road&address_2&city=Granville&state=Ohio&zip=43023">Register another person from the same company</a>

    Then you need to make sure the following fields have the box checked on the Advanced tab "Allow field to be populated dynamically". If that is true, then you need to make sure that the appropriate fields have these parameter names:

    company
    street
    address_2
    city
    state
    zip

    If that is true, then the form can 'catch' the values being sent in the query string, since those are the parameter names you used there.

    There is no danger in checking "Allow field to be populated dynamically" and not sending the data. The field is just not populated when the visitor fills the form the first time. On their confirmation screen, they are presented a link to "Register another" and that link to your form has the query string you built, which will pre-populate those fields for them.

    Posted 11 years ago on Monday January 7, 2013 | Permalink
  7. Susan
    Member

    Thank you so much! I got it working and registration is now a much more efficient process. Thanks again!

    Posted 11 years ago on Thursday January 10, 2013 | Permalink
  8. You're welcome. Thank you for the update.

    Posted 11 years ago on Friday January 11, 2013 | Permalink

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