What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Pass Address Data via URL

    Asked by veritascredit on October 07, 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

     

    Via pass address field style size source name
  • Profile Image

    Answered by Sammy on October 08, 2015 at 09: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.

  • Profile Image

    Answered by veritascredit on October 08, 2015 at 01: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!

     

  • Profile Image

    Answered by Sammy on October 08, 2015 at 02: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.

    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.