Extracting Information from the Address Field

  • Profile Image
    TJHodge
    Asked on June 03, 2012 at 12:53 AM

    In my form I used the generic Address from the quick tools in my form.  The field for this is {Address8}.  The id's in this address field are:

    #input_8_addr_line1,
    #input_8_addr_line2,
    #input_8_city,
    #input_8_state,
    #input_8_postal,
    #input_8_country

    I'm creating a automatic response email and I only want to use the #input_8_addr_line1 and the #input_8_city information in my email. What is the code to do that or how do I write it in my email so that only those 2 will show. Right now it appears that I only have the option of using {Address8} which generates all the information instead of just generating the 2 pieces of information that I want to extract.

    Hopefully that made sense. Thanks in advance for the help! The JotForm forum is truly awesome!

  • Profile Image
    idarktech
    Answered on June 03, 2012 at 02:03 AM

    Hi,

    Use this:

    {Address8:addr_line1}

    {Address8:city}

    You can find more informations about it here: 

    http://www.jotform.com/help/92-How-to-Strip-Headers-from-Postal-Addresses-in-Email-Alerts

    Hope this helps. Thanks!