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.

Multi Page Form

  1. I would like to break one of my forms up into two separate pages. I want to start the form on the home page and continue it on another page.

    Posted 6 years ago on Monday May 6, 2013 | Permalink
  2. David Peralty
    Administrator

    If you do things that way, you would be looking at creating two forms, and having to pass data from one form to another. This could get complex, depending on what data you want collected on each form.

    Posted 6 years ago on Monday May 6, 2013 | Permalink
  3. All I want to collect in the first form is simple text such as First name, Last name and Company Name. Is there a tutorial that outlines the steps for this?

    Thanks for your response!

    Posted 6 years ago on Monday May 6, 2013 | Permalink
  4. David Peralty
    Administrator

    There isn't currently a tutorial for this. On your first form, upon submit, you would want to use a Confirmation Redirect, making sure to have the URL it is sent to be the second form. Then you would want to include the merge tags of the values collected in a query string. So it would look like:

    http://sitename.com/form2/?first={mergetag:first}&last={mergetag:last}&company={mergetag company}

    Then on form two, where you want those values pre-populated (hidden or visible fields, you would check off "All populate dynamically" and in the variable name, you would put one of the ones in the query string (first, last or company). Then when the URL is submitted, it will auto-fill those values in the URL into the form fields in the second form.

    Let me know if you have any questions or concerns. All my best!

    Posted 6 years ago on Monday May 6, 2013 | Permalink
  5. Great! thanks for the info. I will give this a shot and post back if I have any questions.

    Posted 6 years ago on Monday May 6, 2013 | Permalink
  6. I'm actually having a few issues. When I use the confirmation redirect in form 1 and use the format that you have above I get a 404 and the query string does not contain the values from the form. When I use the confirmation redirect option for form 1 and use the following:

    http://mysite/form2/?name={name:1}&company={company:2}

    The values are passed in the query string but again I get a 404.

    If I use this format for the confirmation redirect:

    http://mysite/form2/

    then add the tags using the "insert merge tags" drop down {name:1}{company:2} my url ends up like this: http://mysite/form2/?ValueValue, but it goes to the proper page.

    Any idea what I may be doing wrong?

    Thanks

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  7. David Peralty
    Administrator

    Can you link to your form and the form you want to send information to, and give me the exact details of which fields you want to do what? I need to see this in action, so I can better troubleshoot what's happening.

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  8. I've been working locally but I set up some test forms for troubleshooting:

    http://regalpaymentsystems.com/test-form-1/

    http://regalpaymentsystems.com/test-form-2/

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  9. David Peralty
    Administrator

    When I submit Test Form 1, it goes back to test form 1 instead of going to test form 2. When I add a query string on test form 2, it fills the data.

    http://regalpaymentsystems.com/test-form-2/?email=peralty%40rocketgenius.com

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  10. But there are two form inputs, Name and Email. When I add ?name=Brandon to the query string above I get a 404. Your query string above works but it only contains the email.

    -Brandon

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  11. David Peralty
    Administrator

    Can you confirm you have the same settings for your name field? It is set to allow dynamic population? Maybe call it something other than name (as it might be a reserved query string value) Call it fname and see if it works correctly.

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  12. You are correct, you cannot use the value name in wordrpess forms. It's working now, I just need to change it to a value that makes sense.

    Thanks for your help.

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  13. David Peralty
    Administrator

    Not a problem. Glad we got it sorted.

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  14. Is it possible to not use the label name in the query string? For example I was going to change the label from "Name" to "Full Name" but I received and error using that, If I were to put "Full-Name" in the Admin Label would that change the confirmation merge tag?

    Hope that makes sense.

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  15. David Peralty
    Administrator

    You can set the Parameter name to be whatever you like. It doesn't have to be the same as the label.

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  16. Got it sorted out. kept the label as "Full Name" and changed the admin label to "fname" and everything seems to be working perfectly.

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  17. David Peralty
    Administrator

    Glad to hear it. All my best!

    Posted 6 years ago on Tuesday May 7, 2013 | Permalink
  18. David,

    I've written a tutorial that describes this process. Is it ok if I post it on my blog?

    Thanks
    -Brandon

    Posted 6 years ago on Friday May 24, 2013 | Permalink
  19. David Peralty
    Administrator

    Of course, we love when the community creates great things for the community!

    Posted 6 years ago on Friday May 24, 2013 | Permalink
  20. Thanks David,

    Here is a link to the post: http://www.brandonmcook.com/home/gravity-multi-page

    If you get a chance let me know what you think.

    -Brandon

    Posted 6 years ago on Saturday May 25, 2013 | Permalink