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.
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.
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.
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!
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!
Great! thanks for the info. I will give this a shot and post back if I have any questions.
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:
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
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.
I've been working locally but I set up some test forms for troubleshooting:
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
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
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.
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.
Not a problem. Glad we got it sorted.
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.
You can set the Parameter name to be whatever you like. It doesn't have to be the same as the label.
Got it sorted out. kept the label as "Full Name" and changed the admin label to "fname" and everything seems to be working perfectly.
Glad to hear it. All my best!
David,
I've written a tutorial that describes this process. Is it ok if I post it on my blog?
Thanks
-Brandon
Of course, we love when the community creates great things for the community!
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