JotForm User Guide / Advanced Features /

How to Automatically Pass Form Data to Another Form

How to Automatically Pass Form Data to Another Form

We know how to prepopulate a JotForm Form via URL parameters as mentioned in this guide. Now how do we prepopulate another form from another form's data?

Here's a guide on how to redirect the user to another form and prepopulate the second form with the previous form's data. You can follow the steps below.

Step 1 - Setup two forms, namely "Form 1" and "Form 2".

Form 1: https://form.jotform.com/53541423066955

Form 2: https://form.jotform.com/53542179889977

Step 2 - The two forms are identical and we are showing different input fields, this is to demonstrate how each field can be populated.

Step 3 - The idea is that we want to have Form 1's data to be prepopulated to Form 2 after clicking the submit button.

We will add the prepopulated URL of Form 2 in an email alert and in the "Thank You" page for you to see how it works. You can try filling out my Form 1 and see how it looks like.

Here's the final prepopulated Form 2 URL that I have:

https://form.jotform.com/53542179889977?fullName1[first]={fullName:first}&fullName1[last]={fullName:last}&email2={email}&textBox8={textBox}&textArea7={textArea}&dropDown4={dropDown}&radioButton5={radioButton}&checkBox6={checkBox:0},{checkBox:1},{checkBox:2}

This is how Form 2 URL is structured:

Blue highlight: Form 2's direct link

Magenta highlight:

"?" - We will start the prepopulation by adding first this symbol

"=" - To assign a value on a form field

"&" - To  add more than one form field to be prepopulated

Yellow highlight: This is the field name from Form 2. You can get the field name by following these guides:

a.) Step 3 on this link Prepopulating fields to your JotForm via URL parameters

b.) How to find field IDs and Names

Green highlight: This is the field name from Form 1 but wrapped in {}.

Step 4 - To be more specific, here's how each part of the URL works:

For form fields with single input or single text box, let's say email field, text box, text area, radio button, drop down, this is how they are structured:

Email field:

email2={email}

This states that you want the email field in Form 2 (left side) to be filled out using the email input from Form 1 (right side).

Radio button field:

radioButton5={radioButton} 

This states that you want to select the radio button in Form 2 (left side) to be filled out using the selected radio button in Form 1 (right side). Noticed that after the "=" sign, field names are wrapped in {}, this means we are getting the field value from Form 1. 

This is quite different for form fields with multiple text boxes or options, e.g. Full Name field and for Check boxes.

Full Name field having two text boxes, text box 1 is for the First name and text box 2 is for the Last name. If you check the field name in the HTML, you will see how the name attribute is structured.

In our prepopulated Form 2 URL, this is how it looks like when prepopulating the first and last names:

First Name:

fullName1[first]={fullName:first} 

Last Name:

fullName1[last]={fullName:last}

Noticed that the right side part of the parameter is using ":" (colon), this is to specify which text box we want to get the value from the full name field, for first name use ":first", for last name use ":last".

For Checkboxes, this is how we get the value from Form 1:

checkBox6={checkBox:0},{checkBox:1},{checkBox:2}

The right side shows using ":" (colon) again, but we will use numbers after it, these are indexes to identify the check boxes. I have 3 check box in my form which means I need to have indexes "0", "1" and "2". You can find this under the Properties window of the check box field. Separate each of them using a comma. Here's how to find them:

1. Click the GEAR icon to open the Properties Wizard

2. Go to the ADVANCED tab

3. Scroll all the way down to the bottom

4. Click FIELD DETAILS

Here you can see the field unique name and field IDs:

Related guide: How to find field IDs and names

Step 5 - Now I will add our custom prepopulated Form 2 URL in our email template (either on your email notification or autoresponder email) to have a copy of it in the emails, and in the "Thank You" page so that user will be redirected.

Here's a screenshot to where I am adding it to my autoresponder.

In the insert/edit link window, paste the prepopulated URL here:

I will also add it in my "Thank You" URL to automatically redirect the user to Form 2.

1. Click SETTINGS at the top

2. THANK YOU PAGE on the left

3. Select REDIRECT TO EXTERNAL LINK

4. Then paste the PREPOPULATED URL

Related guide: Redirecting Users to a Different Page

You now have an automated way to pass Form 1's data to Form 2 directly using its URL, you also have that saved in your email notification/autoresponder.

For questions, feel free to leave us a comment below.

Contact Support:
Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:
Contact JotForm Support: https://www.jotform.com/contact/

Send Comment

78 Comments...

See all comments
  • Print_Actuate

    I am trying to prepopulate a form based on a trigger from an answer in the previous form.
    Will this same method work? Can I use the unique URL in an auto responder email and have it populate the previous forms data?

    Also I can't find the id's
    https://drive.google.com/file/d/1CADqi2ADLLSZI5KWTeIG6zjdCzUBS1nF/view

  • VictorHugozr

    Hola quiero prellenar un formulario, pero no en la página de agradecimientos, si no en un punto del formulario en el cual pueda insertar un link y desde ese link se abra el segundo formulario ya prellenado ¿como puedo hacer esto?

  • forumfitness

    What happens if there are two text entries in first name? For example fullName[first]=Mary Ann? I am trying to have it generate a link that will be included in an email, but the link breaks if there is a space.

  • Bencivenga

    My previous comment unfortunately had a bit of HTML code and it converted my URL to the text "complete your application below". The URL in question, that we have in our email template for form 1, is:

    https://form.jotform.com/201066188115046?businessName={businessName6}&contactName[first]={contactInformation.first}&contactName[last]={contactInformation.last}&email={emailAddress}&mobilePhone182={phoneNumber}&selectYour={businessType11}&;howDid={howDid}

  • Bencivenga

    Hello,

    Is there a reason that brackets don't seem to pass through properly? I have two forms setup:

    Form 1: https://form.jotform.com/201134575212141
    Form 2: https://form.jotform.com/201066188115046

    When form 1 completes, we have an email sent to the user that allows them to continue with Form 2. We have a link created that is designed to move pertinent data from form 1, to form 2. This is what the link looks like in the email builder within JotForm:

    complete your Application here

    Yet, when a user actually clicks on the link, they don't see the "brackets" that indicate first/last name in the contact field. It shows like this when clicked:

    https://form.jotform.com/201066188115046?businessName=AND%20processing&contactName%5Bfirst%5D=&contactName%5Blast%5D=&email=nick@andprocessing.com&mobilePhone182=(415)%20613-3266&selectYour=Retail&;howDid=Customer%20Referral

    How can I address this? Thank you in advance!

  • MatthiasGeiken

    Is there a way to append a drop down list with names from several forms submitted over time? I need to populate a list of people that have complete a form using the first and last name element and signed the submission but then I want the first and last name from those forms to popular the array from the drop down menu.

  • bbyoinsider

    Hi,

    I'm not interested in having my users fill out form 1, and the be automatically directed to form 2. I need them to be able to fill out form 1, and then pick whatever next form they want to fill out (forms 2-10) and the information from form 1 carry over to whichever next form they want to fill out. How do I go about doing this, without an automatic redirect?

  • russeliason

    I have been searching for the answer to this but cannot locate it. When passing data from one form to another I have been able to successfully pass fields with only ONE unique name and ONE field ID, the question is, on fields with multiple field ID's do you have to put the # and do you use a comma?

    Example: ?propertyAddress=#input_18_addr_line1,#input_18_addr_line2,#input_18_city,#input_18_state,#input_18_postal,#input_18_country

    or

    Example:
    ?propertyAddress=#input_18_addr_line1&propertyAddress=#input_18_addr_line2 etc, etc.

    form1: https://www.jotform.com/build/91535733401149
    form2: https://www.jotform.com/build/91787066617166

    Thank you

  • elektrahealth

    What happens if there are two text entries in first name? For example fullName[first]=Mary Beth? Right now it's throwing an error if someone has two first names.

  • elektrahealth

    Is it possible to connect two HIPAA compliant forms? i.e. user completes short 2-3 form with name & email, and is automatically directed to the second form with either their name & email autopopulated OR a way for us to know on the backend that the two forms are connected?

  • sara_chejanovich

    sorry I complete the information.
    Form 1 is https://form.jotform.com/200816269757060
    Form 2 is https://form.jotform.com/200878933161055

    I check in windows the URL that is passed and looks like this https://form.jotform.com/200878933161055?name=SARA%20CHEJANOVICH&titleOf=SARA%20CHEJANOVICH&%20date23[month]=03&date23[day]=29&%20date23[year]=2020&date26[month]=03&date26[day]=29&%20date26[year]=2020&titleOf7=29&%20date[month]=01&date[day]=01&%20date[year]=1919

    All field except dates are passed correctly.
    Hope you can help me

  • sara_chejanovich

    I am having a really hard time trying to pass date from one form to another. I tried the solution of using month, day and year separately but It didnt work,

    https://form.jotform.com/200878933161055?name={:1Nombre}&titleOf={1Nombre}& date23[month]={datemmddyyyy:month}&date23[day]={datemmddyyyy:day}& date23[year]={datemmddyyyy:year}&date26[month]={datemmddyyyy:month}&date26[day]={datemmddyyyy:day}& date26[year]={datemmddyyyy:year}&titleOf7={datemmddyyyy:day}& date[month]={8Fecha:month}&date[day]={8Fecha:day}& date[year]={8Fecha:year}

  • sbanawan

    I should not be having such a hard time with this but I can't figure out something so basic it's driving me crazy.

    I've got a series of 4 forms I need filled out. I'd like to pass the full name from one to the next. Form 1 should receive input from the user and pass it to form 2, etc. To test this out, I'm just trying to pass the values directly through the URL.

    https://form.jotform.com/200778191731053?name[first_17]="name" just to test. It will not work no matter what I've tried.

    I've looked at the source code and for some reason that name field is called q17_name[first_17]. I've tried that in the URL and still no dice. I'm out of ideas.

  • ncgforms

    I am having issues passing long text entries from one form to another. The entry will be truncated to one sentence in the second form. Is there a way to work around this?

  • COLV17

    Is there any way of providing a demo for this? I'm struggling with this one. The forms I have prepared on Jotform would benefit from this so my customers (submitters) aren't having to type some information twice, such as their name, address etc. but other variable information could be changed accordingly. Is there not just a simplier way to do this? Could my customers (submitters) not just copy a form they have filled in, either prior to, or after submission, in order to only change the relevant information needed?

  • OceanBuilders

    Does this redirect work offline????

  • ingindustrial87

    I'm trying to do this, but have several fields multiline type and also addresses, so I wonder what's the URL name or tag I should use.

    Thanks in advance for your advice.

  • Rockstar063011

    Hi, how can I get the answer they submit from form1 and just display the answer in form2 before the follow-up question?

    For Example:
    Form1
    Question: What is your favorite food?
    Answer: Apple

    Form2
    Apple
    Question: Why Apple?
    Answer:

    Is this possible?

  • Gc159b

    Hi, What if I want to send the form data to a specific form that was embedded in my page instead of just the jotform url? Do I still need to put the form number and the question mark?

    ie.. mypage.com/92964734280973240?

    instead of
    https://form.jotform.com/92964734280970?

  • BTM2020

    I only want to merge data from Form 1 to the 2nd PDF under the appropriate month.

    Don't want the submitter to have to do be redirected to the 2nd PDF. Just want it to appear on the 2nd PDF when they submit data on the first.

  • Schmicko

    Hi I am using your form builder where it's 'one question one step format: order form'. How do i edit the question so that if a certain answer is selected, it will lead to a different sequence of questions?

    eg. What is your favourite colour
    Red
    Blue
    Green

    And if they selected REd they would get a different sequence of questions to that of the other options?

    Thanks

  • Gc159b

    Hello, I want to pass the clients first and last name to a payment form that is combined with credit number. etc. So I want to pass information to a specific field id- not just to the unique name. Can I do that?

  • Gc159b

    Thank you for your help on the last one! Next question- I want to pass the last 4 digits of my forms ID # to another form. How do I do that?

  • Gc159b

    Your method worked perfectly the first time, but the second time it remembered the info from my first test and populated the boxes with that. I tried the 2nd link again in an incogneto window and it worked fine. How does it work with caching and this method?

    Here is my link-
    https://form.jotform.com/92964734280970?clientsName[first]=test&clientsName[last]=testerson&enterAmount=$10.20&whoDid11=Geoff B

  • SBVA

    I would like to simulate the following scenario. I am hoping this feature of passing data from one form to another might help. Please advise..
    Scenario:
    1. In a college, there are 5 different courses offered (let us say Class1, Class2, Class3, Class4 and Class5).
    2. Each class has different seating capacity. E.g. Class1-60 students(max), Class2-30 Students(max) and so on..
    3. A given student can pick only one class to attend. But while he is registering for himself as a primary student, he can also register secondary student for a different class or same class for his/her spouse. That means the Form can accept one student (primary) OR two different students (primary and spouse).
    4. So in order to maintain the Capacity of the class, the form should give an error message if the student has selected a class which is already full (based on capacity set).

    What I tried and failed:
    First, I checked if reading the "capacity" data from an external source such as Excel Sheet - but apparently this is not possible in Jotform.
    Then I tried using different widgets such as Gift Registry, Inventory etc. but they do not work for me because of the requirement #3 mentioned above. Because if the primary and secondary students select same class, I cannot decrement a single class inventory

    What I would like to explore"
    Maintain the Gift Registry in a different form (say CapacityForm);
    As soon as Registration Form opens it should get the data from CapacityForm
    Upon Submission of Registration Form, it should pass data to Capacity Form so that appropriate class inventory is decremented.

    Is this possible?

  • webguywill

    How do I pass the calendar date to a second form? I'm trying to input the fields into a database, but it's not passing to the next page.

  • nsparksbizservices

    Hi Jotform Team,
    Is it possible to pass data from Form 1 to Form 2 but then have Form 2 also automatically Submit?

  • chrismoixa

    Can I pass a signature from one form to another?
    I'm using the smooth signature widget on form one and I want it just displayed on form 2 without the option to fill it in. Is this possible?

  • williamhay

    HI,
    is it possible to pass tha data inserted in an "Input table" from a form to another form
    I am actually encountering problems with this element.
    the "data passing" works properly with every element except with the "Input table".

    regards

  • gamesdayparties

    Is there a way to pass the calculated value of a check box to a dropdown value (1,2,3,4,etc) further down the form? Such as checkbox1 is $20/person and further down a dropdown asks how many guests are coming so it multiplies checkbox1 to dropdown value to determine cost? Thanks.

  • OldDomEMSAlliance

    Is it possible to pass a 'upload document' from one form to another? I need the customer to upload a document and then have that send to me in the second form to verify and then click approve (which I added to the second form).

  • specialorders

    i think i understand the logic , but will this work for me, a shop with multiple orders,
    i want the sales man to place the order then the buyer receives the repopulated form and updates it

    it looks like the second form will always link to the most recent first form.
    i need to be able to access the 2nd form from a link in the first form submission.

    thanks in advance

  • jhellington71

    Hi

    This is not working for me properly. I simply want to add the full name and email into the 2nd form to save them having to duplicate the effort.

    On the autoresponder only the email address is transposing into form 2.
    On the thanks you page nothing is transposing
    The field names on both forms for the full name element is "name".

    Form 1. https://form.jotformeu.com/myusername/idea-form-sign-in
    Form 2. https://form.jotformeu.com/90862469051360

    Have inserted the following URL into to form 1's autoresponder on the link to follow

    https://form.jotformeu.com/90862469051360?name{name}&email={email}

    I've tried all manner of name fields including copying your example. I've two further forms to get sorted out.

    Cheers

    Why my username is on the first one I am also unsure?

  • alermsider

    is there a form ID we can pass over and if so what is the code?

  • BorisKheyfets

    You might want to urlencode all field data:
    {description} to {URLENCODE:description}
    https://www.jotform.com/help/164-Pass-Value-to-Another-Form-with-URL-Encoding

  • EIdB

    Hi, Is this method GPDR complient?
    Does this methode work if there is just tekst and a link in the autoresponder e-mail? (no datagrid)

  • JulieannPersonal

    Hi, before trying this on a very large form I created a sample form1 with only a few fields. Then a Form2 to go with it which tries to receive some of those fields. The Form2 does not import any pre-populated data in the fields that it should have passed. I have carefully checked the details I can see, but must have missed something.

    So I tried looking at the sample forms you provide in this instruction. However the URL has my actual entries instead of the {FieldNameInForm2} information. That means I can't check whether that part is done right.

    Could you post the URL link as in the ThankYou page at the end of Form1?

    Thank you!

  • danmag

    Hi,
    is it possible to prepopulated fields with logic jump? My form 1 has a lot of hide/show conditions and my form nr will be exactly the same + i will add to payment ..

    Is there any way how to do it smart?

  • compassconcierge

    Can we pass data from a jotform to a docusign form via the integration?

  • birugadai

    Can we pass Image Data from First Form to the second Form?

  • parbev

    Hi I am a little confused about this still. I want to know if this would work if we wanted to have one form that our client fills out and then another form based on what client fills and then have a form with that data another employee fills in more information about what the client wants and needs?

  • bettersolutions

    I want to push data from one internal document to another internal document.

    I understand the concept of the necessary codes to identify which fields that I want to move, but WHERE do I place this code if it's NOT on an email form?

  • eyaacademy

    Is it possible to do with a edit form?
    How can I do it?
    Thanks

  • eyaacademy

    Hello,

    Is this possible on embedded forms?

    Thanks in advance,

  • Smart-program

    Hello,
    We use jotform for our applications. Is it possible to have our recommendation letters that are currently received separately to be tied to the application itself?
    thanks,
    Kerri

  • roadrunner-recycling

    Hello,

    Is this only possible on Jotform URLs, and not on embedded forms?

    Thanks in advance,
    Andy

  • a4solucoes

    Gostaria de uma ideia de como fazer isso criar uma codição que quando a imagens seja selecionada usado o selectimage ele já vá para segunda página alguem tem ideia?

    https://form.jotformz.com/81856285653670

  • marcasjapi

    Hi I have succesfully done this with a couple of forms. I integrate the forms with Asana to create a task.

    Is there any way that the URL to automatically redirect the user to Form 2 appears in Asana's Task?

  • sebastienhersent

    Hi,

    I think I am near from my solution but i have a problem. I try to populate the value form an hidden textbox form my form 1 and put into an other textbox on my form 2 but it never fill the textbox
    My form 1 :
    https://form.jotform.com/81652408204956

    My form 2:
    https://form.jotform.com/81652464104957?nUnique={appelDe}
    Can you help me please
    I try to populate the value but it never fill the textbox

  • PeterNoblesse

    Can some-one from Jotform please take a look?
    I'm willing to pay if you guys can fix that for me,
    I'm really stuck...
    http://mbcpro.prowebsite.be/
    input from page one needs to come back on second and third form...