- blittlefieldAsked on May 22, 2017 at 09:45 PM
I have a simple start form to create a session ID. I have a second form and I want to pass the "first" name and the "last" name from the first form to the second form as prepopulated fields. I've read several of the earlier posts on this but I can't figure out the syntax that works.
This is the URL for my first form:
It has an autoresponder email with the following URL:
This is my attempt to get the first name field pre-filled to prove I could do it. It doesn't work.
I inspect my elements and get the following from the first form for the first name field:
<input type="text" id="first_3" name="q3_name[first]" class="form-textbox" size="10" value="" data-component="first">
I get the following from the second form for the elements:
<input type="text" id="first_4" name="q4_name[first]" class="form-textbox validate[required] form-validation-error" size="10" value="" data-component="first" required="" placeholder="">
What I gather is that I should be defining what I want in the second form for "first_4" by telling it to make it equal to what is in the first form for data which is "first_3". But I don't seem to be able to figure out the correct syntax to pass the value through despite having read multiple posts from the forum on how to do it. None seem to give me the specific details that I need.
This is the URL that I'm using to transfer the user to my second form in my autoresponder message:
And last, this is the URL of my second form:
What is the correct syntax for adding the first or last name as repopulated fields in the second form?
Thank you in advance! Bill L.
- JotForm Supportashwin_dAnswered on May 23, 2017 at 12:17 AM
So if I understand your question correctly, you want to read the first & last name of first form and populate the fields of second form. Is that correct?
The correct pre-population URL for second form should be:
The above URL needs to be added in email template, thank you message or custom thank you URL of your first form.
Hope this helps.
Do try it out and get back to us if you have any questions.
- blittlefieldAnswered on May 23, 2017 at 01:43 AMThat seemed like it would be very helpful but it is still not working. Confused.
This is my URL. It is the same only it has the "session=[email]" added which is working. But the names are not passing.
It is in the autoresponder as a link. The link works. The first and last name fields are still not being passed through.
I cleared all my cookies and testing it again. Still not working.
Did I still do something wrong?
- JotForm SupportcandyAnswered on May 23, 2017 at 03:29 AM
I have seen that the link doesn't work as expected seen below:
I have cloned your forms on my side in order to test them. I have seen that your link is not correct in order to prepopulate the fields.
The link will work with the form field's names, not with their IDs. Please change the link as the following:
For further detailed information, please find the following guide: https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form
If you need further assistance, let us know.
- blittlefieldAnswered on May 23, 2017 at 11:43 AMI have made the changes you requested.
I have cleared my cookies and all jotform web data.
I initiated the form to test.
Still the data fields are not passing to the second form.
It is not that big of a deal for these two simple data fields so I am going to stop trying.
I do not want to waste any more time on a task that should be simple to implement.
Thank you for trying. I think your system is broken.
- blittlefieldAnswered on May 23, 2017 at 12:43 PMI have fixed it.
It was working in the autoresponder but not in the Thank You page. Once I fixed the link in the Thank You page, it worked both places now.
- JotForm Supportashwin_dAnswered on May 23, 2017 at 01:34 PM
I am gald to know that you were able to solve it yourself and your form works as expected.
Do get back to us if you have any questions.