How can I pre-populate my form based on another one?

  • Profile Image
    avijfr
    Asked on June 26, 2017 at 03:47 PM

    Hi There,

     

    I've looked at the following tutorial but I am still confused. (https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters)

    I have form 1: https://www.jotform.com/build/71716033028247/settings/general#preview

    Which i need my user to fill out, then i want the info to be carried to form 2: https://www.jotform.com/build/71715888228266#preview

    But they need to by hidden fields, so that when they submit i capture all the data.

     

    Is there a video tutorial or anything like that?

    The tutorial is confusing.

     

    Thanks

  • Profile Image
    AIDAN
    Answered on June 26, 2017 at 06:06 PM

    Please note that while we may not have a video tutorial for what you kindly described, we do have a detailed guide that is better suited to this use case than the guide you have looked at: https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form

    Please consider this guide on how to automatically pass form data to another form and get back to us if you still need further assistance. We will be happy to help.

  • Profile Image
    avijfr
    Answered on June 27, 2017 at 02:13 PM

    I think you misunderstood my question.

    I'd like to carry the fields into a second form but make them hidden.

    So I wouldnt be prepopulating them, just carrying the data over, so that when the user fills out form 2 the data from form 1 & 2 is captured.

  • Profile Image
    aubreybourke
    Answered on June 27, 2017 at 03:08 PM

    Even though the fields are hidden the method is the same. 

     

    You pass parameters via the query string. Thats the ? after the hostname in the URL. Parameters are passed as name/value pairs.

    #1. You would have to get the variable names from form 1. Simply select a field you want to pass and then in the field properties get the field name. It will look like {name} or {email}

     

    #2. Then, you would have to get the target variable names from form 2. Here's a handy tool to help you get the names of the targets.

    http://prepopulate.jotform.io/

     

    You will need to use both of these name/value pairs in your query string. 

     

    #3. Then add the second form URL with the query string as the thankyou page.

    For example: https://www.jotform.com/form/1235678901?name1={name}&email21={email}

    This would send to form 123...  a target variable name called name1 on form 2. With the value from form 1 a field called {name}.

    It would also send to form 123... a target variable name called email21 on form 2. With the value from form 1 a field called {email}