What I want to do is an extension of my question here:
http://www.gravityhelp.com/forums/topic/pre-filling-a-form-with-the-data-of-the-previous-form
I have a form that parents use to subscribe children in a school. This is strictly regulated and must be with exact date / time. When a parent wants to subscribe a 2nd child, that child gets the time of the first child (so nobody else can take his place).
My first attempt at creating this was by using 2 seperate forms. First form is filled out and gets a confirmation message (text message on submission). In that confirmation message, there's a link to a pdf with the data they gave.
In that confirmation message is also a 2nd link to form2, asking if they want to add a 2nd child. That form is filled with the date / time of the first form by using merge tags.
You're welcome to try it out here: http://tinyurl.com/cn9v8km
All this works fine but I want all data in one form, not in 2 seperate forms (also, what if a 3rd child??).
So, I started from scratch and made 1 form for all childs like this: http://tinyurl.com/cquyquw
Here I added a question at the bottom if an additional child must be subscribed.
If no, the confimation message displays a thank you message with the pdf.
If yes, the confirmation message displays the message with the pdf and an additional url to restart the form with some extra fields for the 2nd child.
This works fine as will, however, the confirmation message is on a blank canvas because I'm using a conditional redirect like this:
http://zackeryfretty.com/redirect-to-a-specific-url-based-on-submissions-with-gravity-forms/
Again, welcome to try out the form to see what I mean.
So I then stumbled across the Gform confirmation stuff and was thinking to use that, as the confirmation message stays 'inside' the website, not on a new blank page.
I added this code to functions.php and it works fine, giving a different confirmation message according to the yes/no answer, but the problem is that I don't know how to add the url (with merge tags) to restart the form.
Sorry for the long reply, I hope I made it somewhat clear ...
Posted 11 years ago on Tuesday December 11, 2012 |
Permalink