How to pass value from one form to another form

  • Profile Image
    billylevine2003gmailcom
    Asked on June 26, 2013 at 05:54 PM

    In the above example how do I pass it the value of the field instead of hard coded value.

    In my application I am feeding a second jot form from a parent jotform and I want to pass values from one the other



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

  • Profile Image
    Elton
    Answered on June 26, 2013 at 08:50 PM

    Hi,

    That's possible. Here's a guide:

    1. Copy the field variables in your 1st form. These variables must be the fields that you'd 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 braces e.g. in this example the field variable is {email}

    01162021_2n6QiBp3Y7.png

    2. Copy your 2nd Form URL e.g. https://www.jotform.com/form/1235678901 and construct the URL parameter for prepopulating value from the 1st form to the 2nd form. Prepopulating the fields to your Jotform via URL parameters.

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

    To explain:

    https://www.jotform.com/form/1235678901  - is your second form URL

    {name} & {email} - These are field variables from your first form as explained on the first step.

    name1 & email21  These are field names from the second form. This is where the value from the first form be prefilled in. Check below to learn how to get field names from your 2nd form through browser inspect element.

    To get your 2nd form's field names,

    a. Open the 2nd form with your Google Chrome Browser,

    b. Right-click the text box where you'd like to get its name,

    c. Select Inspect Element and copy the field name in the source code below under name attribute after undercore "_".

    get_field_name_inspect_element.png

     

    3. Last and final step, set the constructed URL with parameter as your Thank you Custom URL. Here's how:

    01162021_eXMynj4Raj.png

    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 further questions. Best Regards!

  • Profile Image
    hehacliff
    Answered on January 17, 2014 at 11:05 AM

    Excellent ! ! ! ! Very helpful thanks !!!!

  • Profile Image
    digiosolutions
    Answered on March 08, 2014 at 06:05 PM

    Is this possible if the thank you page sends user to another non-jotform page with jotform of the 2nd form embedded on it (using the modified url parameters as the source of the form)?

     

    If that's possible it will be amazing!

  • Profile Image
    Elton
    Answered on March 08, 2014 at 06:49 PM

    @digiosolutions

    If the 2nd form was embedded using its source code, then that's possible. However, may we suggest you first to post your question to a separate thread and provide the mentioned URLs so we can assist you further.

    Thanks!

  • Profile Image
    Welvin
    Answered on April 21, 2015 at 01:51 PM

    @Chosen_B, 

    Your question will be answered here: http://www.jotform.com/answers/556433.

    Thanks

  • Profile Image
    AmourTax
    Answered on January 08, 2016 at 10:12 AM
    How to pass value from one form to another form without submission? using a link between forms? 
  • Profile Image
    Charlie
    Answered on January 08, 2016 at 01:10 PM

    @AmourTax

    I have opened a separate thread for your concern. Please refer to this link instead: http://www.jotform.com/answers/739989. We will address it shortly.

    Thank you.

  • Profile Image
    dmichaels
    Answered on March 09, 2016 at 10:30 AM

    I got the form fields to pass to a second form using the Submit button, but can not make it work for a url in a label...When I get to the second form, the fields get filled in with the label name instead of the value.

    The link LOOKS good before you click it (it shows the values), but when it gets to the second form, it's NG

    OBVIOUSLY, it's some small, dumb thing I'm doing wrong.

    https://form.jotform.com/60665692617970

    Thanks,

    David

  • Profile Image
    Charlie
    Answered on March 09, 2016 at 10:35 AM

    @dmichaels

    Thank you for contacting us, I went ahead and opened a separate thread for your concern. Please refer to this link instead: http://www.jotform.com/answers/790934. We will address it shortly.