-
torreszachAsked on December 13, 2016 at 11:24 PM
So I was wondering if I could pass multiple field values to a second form. I have two forms, Form 1 and Form 2. I have passed Form 2 as my Thank You page from Form 1. I am passing the field {totalCost} in Form 1 into {finalCost} on Form 2. I was wondering if I could also pass the estimated shipping date on Form 1 into final shipping date on Form 2, and if it was possible to pass even more fields from Form 1 into Form 2.
I used the methods in the forum below to pass Form values.https://www.jotform.com/answers/804026-Able-to-modify-the-total-amount-in-the-second-page
Below are links to both of my forms.
Form 1: https://form.jotform.com/
Form 2: https://www.jotform.us/form/
Thank you,
Zach
-
sethReplied on December 14, 2016 at 1:00 AM
Hello,
You are prepopulating fields from one form to another form. I checked your prepopulation and it is very well established. You need to add required fields to pass shipping date into the second form.
Here is the guide about it: https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form
Also have a look this form:
https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters
Your final URL should be this one, please add this to your Thank You page:
Please give it a try and turn back to us with the results. If you have further queries please contact us again.
Cheers.
-
torreszachReplied on December 14, 2016 at 4:01 PM
The links were super helpful thank you. The suggested final URL did not work though. The URL filled just the year field of the "estimated delivery date." So what I went ahead and did was create a new field that copied my estimated delivery date to a text field and then prepopulated that field to the final form.
-
torreszachReplied on December 14, 2016 at 4:15 PM
Also at what point would you say prepopulating form 2 fields would greatly slow the loading time of the form?
-
Kevin Support Team LeadReplied on December 14, 2016 at 6:51 PM
The link with the date pre-populated above did not work because the value was not properly captured, do note that the date time field has multiple fields so you need to get the value separately, for example, if your field is named "estimatedDelivery" then you will get the values like this:
{estimatedDelivery:day}
{estimatedDelivery:month}
{estimatedDelivery:year}
And to capture the values on your second form you do it like this:
estimatedDelivery[day]
estimatedDelivery[month]
estimatedDelivery[year]
But "estimatedDelivery" needs to be changed to the real field's name in your second form, this guide will help you to find a fields name so you can get the real ones: How-to-find-field-IDs-and-names
This way you will be able to take each value submitted from a date field and pre-populate them in a date field in the second form.
Here's also a sample link about it: https://form.jotform.com/63425529433962?date[day]=25&date[month]=12&date[year]=2016
The data has been manually pre-populated so you can change the values and see how it works.
Regarding to the form speed, pre-populating fields should not affect the time it takes to load, I have checked your forms and I can see they are loading quickly:
However, if you notice they are taking some time to load, please try with a different internet connection and with another device as well, if the problem still persists, please do let us know.