What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How do I prepopulate fields in one form with text input from another form?

    Asked by pepperglobal on April 20, 2012 at 12:22 PM

    How do I prepopulate based on data that the user submitted from another form? I want to be able to have fields auto-filled from data already entered. Therefore, I thought breaking it into two forms and using the second form in place of a thank you page would be a good approach. I'd like to make the URL of the thank you page (second form) autopopulate based on what the user submitted in the previous form. How do I create a URL for that? Or is there an easier way?



    This is a re-post of a comment on Prepopulating Fields to Your JotForm via URL Parameters

    another form prepopulate prepopulation thank you page thank you message two forms prepopulate data prepopulate email
  • Profile Image
    JotForm Support

    Answered by Mike_T on April 20, 2012 at 06:21 PM

    Thank you for contacting us.

    It is possible to place a dynamic prepopulation link to the Thank You Page on your first form.

    1. First of all, you will need to get the field {tags}, you can get them from Notification email. Then, you will use them in your dynamic prepopulation URL.

    2.  For example, lets try to prepopulate email address field on the second form based on data that user submitted from the first form. According to the previous screenshot, {yourEmail16} tag is responsible for E-mail field on initial form.

    Now time to add dynamic prepopulation link to the Thank You Page of first form.

    So to see this live, please enter test data on this form : http://form.jotformeu.com/form/21106494481350

    Now let's see the dynamic prepopulation URL to the second form:

    http://form.jotformeu.com/form/21106785005345?email18={yourEmail16}

    If something is not clear, please let us know.

  • Profile Image

    Answered by pepperglobal on April 23, 2012 at 09:40 AM

    Many thanks! I'll try.

  • Profile Image

    Answered by semory on January 04, 2013 at 02:31 PM

    Is there any way to redirect to the 2nd form using the dynamic link?

  • Profile Image
    JotForm Support

    Answered by Mike_T on January 04, 2013 at 02:55 PM

    @semory,

    The auto-redirect option is not available, since the field {tags} are not working on the Custom Thank You URL.

    However, it is possible to do this with a bit of coding. See the following thread with Neil's code example on it.

    Using {tags} in Custom Thank You URL option

    Thank you!

  • Profile Image

    Answered by semory on January 04, 2013 at 03:49 PM

    Worked Perfect! Thanks!!

  • Profile Image
    JotForm Support

    Answered by Mike_T on January 04, 2013 at 03:50 PM

    You are quite welcome!

  • Profile Image

    Answered by lxrogers on September 22, 2014 at 10:03 PM

    Is there a way to use matrix values for this? I know how to populate the second form, but I don't know how to get the cell entries from the {table} form entry.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on September 22, 2014 at 10:54 PM

    Hello lxrogers,

    Yes it is possible to pre-populate your matrix field as well. You can do this with URL parameter to pre-populate any form field with it's name. Please check the screenshot below:

    You may like to take a look at our "Field Prepopulator" app which should help you generate the pre-populator app to generate the URL with parameters.

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • Profile Image

    Answered by lxrogers on September 23, 2014 at 12:30 AM

    Well like I said I know how to populate the second form. what I don't understand is how to get the cells from the form  in the thank you url. For example {myMatrix:0} just returns "Array" and {myMatrix:0:0} doesn't work either. Neither does {mMatrix[0][0]} or {myMatrix}[0][0].
  • Profile Image
    JotForm Support

    Answered by ashwin_d on September 23, 2014 at 02:31 AM

    Hello lxrogers,

    Okay so you want to read the value of specific matrix cell and show it in thank you page. Is that correct?

    I believe it is not possible to read the specific cell value of your matrix field in thank you message or email alert. Let me do few more test and get back to you if there is any option available.

    I have moved your question to a new thread so that we can send a query to our back end team. You will be answered here:  http://www.jotform.com/answers/432965 

    Thank you!