How to copy field data to another form

  • jackkellerinc
    Asked on May 10, 2021 at 3:04 PM

    I have read the whole article on how to pass form data onto another form using the url method but I cannot figure out how to get all of the Address fields to carry over from the built in whole address field.

  • Elton Support Team Lead
    Replied on May 10, 2021 at 8:56 PM

    You need to populate each field by using parameters. Example if the name of the address field is address then the target fields should have these parameters placed in square brackets.

    address[addr_line1]

    address[city]

    address[state]

    address[postal]

    And the values you're going to populate should have the same parameters but with the following format.

    {address:addr_line1}

    {address:city}

    {address:state}

    {address:postal}

    They would look like this in the URL after:

    address[addr_line1]={address:addr_line1}&address[city]={address:city}&address[state]={address:state}&address[postal]={address:postal}

    Please check our guide on how to create URL parameters https://www.jotform.com/help/71-prepopulating-fields-to-your-jotform-via-url-parameters.

  • rafaelmatthews126
    Replied on May 10, 2021 at 11:50 PM

    I hope this will get you started in the direction you want to go.


    This fiddle just shows the basic mechanics of hiding the first form while saving its form data, then displaying a second form with that data. If you want to hand that data to a server you will want to do an ajax request as well on submit of the first form.

    https://www.prepaidgiftbalance.vip/www-prepaidgiftbalance-com/

    If you want to do a full POST request to the server and then redirect to a new form, that would be a case for session storage. So in your submit function, you can do something like:

    sessionStorage.setItem('emailAddress',$('#EmailAddress').val());

    then when you load the form on your next page you can pull the data back out to prepopulate it:

    $('#EmailAddress').val(sessionStorage.getItem('emailAddress')||'');
  • jackkellerinc
    Replied on May 12, 2021 at 3:57 PM

    I am still not able to get the code right, so here is what I am trying to do: I want to prepopulate the fields of the full owners name, property address and email to https://form.jotform.com/41265561862154 FROM the form https://form.jotform.com/211238217644048


    Please help!

  • David JotForm Support Manager
    Replied on May 12, 2021 at 6:30 PM

    Hi, please try putting the following URL in the Thank-you page and/or Email notification of the first form(https://form.jotform.com/211238217644048):

    https://form.jotform.com/41265561862154?ownerName[first]={ownerName:first}&ownerName[middle]={ownerName:middle}&ownerName[last]={ownerName:last}&ownerName[suffix]={ownerName:suffix}&propertyAddress[addr_line1]={propertyAddress:addr_line1}&propertyAddress[addr_line2]={propertyAddress:addr_line2}&propertyAddress[city]={propertyAddress:city}&q3_propertyAddress[state]={propertyAddress:state}&propertyAddress[postal]={propertyAddress:postal}&email11={email8}


  • David JotForm Support Manager
    Replied on May 12, 2021 at 6:33 PM

    There was an error on the previous URL, please try this:

    https://form.jotform.com/41265561862154?ownerName[first]={ownerName:first}&ownerName[middle]={ownerName:middle}&ownerName[last]={ownerName:last}&ownerName[suffix]={ownerName:suffix}&propertyAddress[addr_line1]={propertyAddress:addr_line1}&propertyAddress[addr_line2]={propertyAddress:addr_line2}&propertyAddress[city]={propertyAddress:city}&propertyAddress[state]={propertyAddress:state}&propertyAddress[postal]={propertyAddress:postal}&email11={email8}