Best way to get multi type fields duplicated to new forms

  • jackkellerinc
    Asked on January 14, 2016 at 8:37 PM

    I want to take the address and full name fields and have them copied to another form.  I know how to pass the variable but not the multiple sub-variables (ie: prefix, first name, middle name, etc..) to make the variables appear on the next form.  What is the best way to accomplish this task??

  • jonathan
    Replied on January 15, 2016 at 1:41 AM

    You can use the browser's inspector tool to determine the correct tag name of the form fields.

    Example:

    Best way to get multi type fields duplicated to new forms Image 1 Screenshot 30

    in the example, you can see the sub variable for Address field for City was separated by colon(:). The format is {fieldame:sub var}

    You can test submit this form https://form.jotform.com/60141065427952

    It redirect to the same form and it will pre-populate the fields using URL parameter values.

    Example:

    Best way to get multi type fields duplicated to new forms Image 2 Screenshot 41

    If you check the URL, you can see an example like this URL

    https://form.jotform.com/60141065427952?fullName[first]={fullName:first}&fullName[last]={fullName:last}&address[addr_line1]=address:addr_line1}&address[addr_line2]=address:addr_line2}&address[city]={address:city}&address[state]={address:state}&address[postal]={address:postal}&address[country]={address:country}

     

    Hope this help. Let us know if you need further assistance.

    Thanks.

     

  • jackkellerinc
    Replied on January 15, 2016 at 10:47 AM
    How do you get the variables to pass through? I must be missing something. I’m trying to pass https://form.jotform.com/60116964293963
    To https://form.jotform.com/41306296441148


    ...
  • Kevin Support Team Lead
    Replied on January 15, 2016 at 1:14 PM

    Hi,

    You can use this app : http://prepopulate.jotform.io/ 

    You should add there your second form, you will get the exact URL with the data prepopulated, then the only thing you need to do, is get the names from the first form, you can do it by two different ways.

    First by clicking on the properties icon in the Form Builder.

    Best way to get multi type fields duplicated to new forms Image 1 Screenshot 50

    Best way to get multi type fields duplicated to new forms Image 2 Screenshot 61

    The second method is by doing right click on the field and selection the option Inspect element.

    Best way to get multi type fields duplicated to new forms Image 3 Screenshot 72

    Then copy the value after the "q_" as shown in the image below, and you should add it like this {email}

    Best way to get multi type fields duplicated to new forms Image 4 Screenshot 83

    You can also find more help on this guide : http://www.jotform.com/help/71-Prepopulating-fields-to-your-JotForm-via-URL-parameters 

    Hope this helps.

    Regards.

  • jackkellerinc
    Replied on January 15, 2016 at 2:47 PM
    I already did all that before I submitted the request. I have https://form.jotform.com/41306296441148?session={email8} &email8={email8}&ownerName[first]={ownerName:first}&ownerName[last]={ownerName:last} but it doesn’t seem to work

    ...
  • jonathan
    Replied on January 15, 2016 at 9:14 PM

    You should not include session? variable anymore in the URL if you are using redirection.

    Try this URL instead

    https://form.jotform.com/41306296441148?email8={email8}&ownerName[first]={ownerName:first}&ownerName[last]={ownerName:last}

    Also, the Email field will not work if the Email Confirmation is enabled. So set it to No.

    Best way to get multi type fields duplicated to new forms Image 1 Screenshot 20

     

    You can also test submit this form https://form.jotform.com/60147699628974

    Let us know how it goes.

     

     

     

  • jackkellerinc
    Replied on January 18, 2016 at 2:47 PM
    It still doesn’t work

    ...
  • Kevin Support Team Lead
    Replied on January 18, 2016 at 4:00 PM

    Hi,

    I noticed you have enabled the Auto Fill feature, I would suggest you to disable it and test your form again, it should work as you need now.

    Best way to get multi type fields duplicated to new forms Image 1 Screenshot 20

    Do let us know the result and if it works now.

    Thanks.

  • jackkellerinc
    Replied on January 18, 2016 at 4:47 PM
    That seemed to solve it. Thanks!!

    ...
  • jackkellerinc
    Replied on January 18, 2016 at 5:47 PM
    How do I get the autoresponder to send the link with the session variable for the second page as shown on your support page in reference to keeping a customer from loosing all of the work if they navigate away from the 2nd page on accident? (http://www.jotform.com/help/97-How-to-Save-Forms-to-Continue-Later )


    ...
  • Kevin Support Team Lead
    Replied on January 18, 2016 at 6:50 PM

    Great to know your form is working now.

    In regards to your second question, I have moved it to this thread : http://www.jotform.com/answers/747923 

    In order to avoid any confusion, we will assist you there.

    Feel free to contact us anytime if you need more help.

    Regards.