Pass Address Data via URL

  • veritascredit
    Asked on October 7, 2015 at 11:17 PM

    I understand how to pass data from one from to another, but I am having a difficult time with the address field.

    If I use the {address} as the source, it populates the Street Address field on the next form with the entire address.

    this makes since as the {address} field name contains the entire address.

    How do I separate the address variables so that I can pass them to my next form?

    These are the ID's I need to pull and push to the next form...

    #input_8_addr_line1,

    #input_8_addr_line2,

    #input_8_city,

    #input_8_state,

    #input_8_postal,

     

    here is the source form:

    http://form.jotformpro.com/form/52798564837980?

     

    here is the destination from:

    http://form.jotformpro.com/form/52798786907984

     

  • Sammy
    Replied on October 8, 2015 at 9:47 AM

    You can use our form prepopulation tool to generate a separated entry for each field in the address,

    you can then edit the value entry of the field whose data you want to pass to be in a URL of the following format.

    http://form.jotformpro.com/form/52803480135955?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}

    Please let us know if you need additional assistance.

  • veritascredit
    Replied on October 8, 2015 at 1:11 PM

    Thanks Sammy,

    Understand what you are saying but the pre-populate tool only shows the data source that is typed in.

    For example in line one of the address it would only show "123 1st Ave" if it was typed not the field name {address:addr_line1}

    How can I find this field name in the future or are do all grouped fields follow this pattern of {Name:ID}

    Thanks again for your help!

     

  • Sammy
    Replied on October 8, 2015 at 2:48 PM

    Is the prepopulation tool to identify the sub-fields present in the address field, the convention you have said {Name:ID} is what most grouped fields use, if in doubt you can use the prepopulate tool to confirm the exact names.

    additionally you check the group fields id and the last name after the id will be the name of the sub-field as highlighted in the screenshot.

    Pass Address Data via URL Image 1 Screenshot 20

    Here are the form I used, you can clone them and use them for reference, the source form has the URL passing parameters to the second on vie the custom link in the thank you page.

    Source: http://www.jotformpro.com/form/52804171984965

    Destination http://www.jotformpro.com/form/52803480135955

    Please let us know if you will require additional clarification or assistance.