Can I use an answer from Form 1 to populate a question in Form 2 that has a different field name?

  • Profile Image
    Thomas Scott
    Asked on February 22, 2022 at 10:20 AM

    Can I use an answer from Form 1 to populate a question in form 2.
    Example, I ask the user in Form 1 what is one of their biggest concerns. They answer in a short answer field box. I then want to take that concern and autopopulate a question of Form 2 like, "What is the status of {previous concern}.
    Is this possible?



    This is a re-post of a comment on How to Automatically Pass Form Data to Another Form

  • Profile Image
    Dragana
    Answered on February 22, 2022 at 11:10 AM

    Hi, Thomas!

    Thank you for reaching out to us.

    Allow me some time to look into your query. I'll get back to you soon.

    Thank you!


  • Profile Image
    Dragana
    Answered on February 22, 2022 at 11:25 AM

    Hi, Thomas!

    Your request is possible. Here is a step to step guide on how to achieve it:

    #1. Copy the field variables in your 1st Form. These variables must be the fields you would like to transfer into the 2nd Form.

    To get field variables, go to field Properties Advanced tab > Field Details > Copy the Unique Name.

    Make sure it is wrapped with curly brackets. In this example, the field variable is {email}:

    1645545720_621508f8aad3e_

    #2. Copy your 2nd Form URL (e.g., https://www.jotform.com/form/0000000000) and construct the URL parameter for prepopulating value from the 1st Form to the 2nd Form

    Guide: Prepopulating the Fields to Your Jotform via URL Parameters.

    Example: https://www.jotform.com/form/0000000000?name1={name}&email21={email}

    Further explanation:

    Let's say that this is your second form URL: https://www.jotform.com/form/0000000000.

    {name} & {email}These are field variables from your 1st Form, as explained in the first step.

    name1 & email21 These are field names from the 2nd Form, and this is where the value from the first Form will be prefilled in. Check below to learn how to get field names from your 2nd Form through the browser inspect element.

    To get your 2nd Form's field names:

    • Open the 2nd Form with your Google Chrome Browser
    • Right-click the text box where you would like to get its name
    • Select Inspect Element and copy the field name in the source code below under the name attribute after underscore ("_").

    1645545813_6215095571325_

    #3. In the last and final step, set the constructed URL with parameter as your Thank you Custom URL. Here is how:

    1645546754_62150d0289f7a_

    After this, try submitting your first form with sample data. It should then redirect to your 2nd form with the prefilled data from the first form.

    Let us know if you have any additional questions or need further assistance.