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

  • Profile Image
    pepperglobal
    Asked 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

  • Profile Image
    Mike_T
    Answered 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
    pepperglobal
    Answered on April 23, 2012 at 09:40 AM

    Many thanks! I'll try.

  • Profile Image
    semory
    Answered on January 04, 2013 at 02:31 PM

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

  • Profile Image
    Mike_T
    Answered 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
    semory
    Answered on January 04, 2013 at 03:49 PM

    Worked Perfect! Thanks!!

  • Profile Image
    Mike_T
    Answered on January 04, 2013 at 03:50 PM

    You are quite welcome!

  • Profile Image
    lxrogers
    Answered 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
    ashwin_d
    Answered 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
    lxrogers
    Answered 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
    ashwin_d
    Answered 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!

  • Profile Image
    calhouncollege
    Answered on January 24, 2017 at 10:31 AM

    In this screenshot, where did you get email18?  I see where the {yourEmail16}

  • Profile Image
    ashwin_d
    Answered on January 24, 2017 at 11:45 AM

    Hello calhouncollege,

    In the screenshot, email18 is the email field of second form where you want to populate the value of {yourEmail16}. You should be able to find the field email18 in form # 21106785005345.

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • Profile Image
    calhouncollege
    Answered on January 24, 2017 at 12:45 PM
    Thanks so much.
    Lanita Parker
    Public Relations
    Calhoun Community College
    PO Box 2216
    Decatur, AL 35609
    lanita.parker@calhoun.edu
    256-306-2615
    ________________________________
    ...