How to Strip Headers from Postal Addresses in Email Alerts

Last Update: May 5, 2017

The Address field is a great way to quickly insert a postal address into a form. However, by default, email alerts include the headers such as:

-Street Address
-Street Address Line 2
-Postal/Zip Code


Step 1: How to add the default address field

While these headers are appropriate for submission records, they are not always desirable to have in email alerts: notifications and auto-responses.

An example, if a user enters the following name and address:


This is how the email notification would normally be displayed:


Compare that to this:



Step 2: How to Strip Headers from Postal Addresses in Email Alerts

1. First, open your email alerts and choose the one you want to edit. In my case, I'll edit the notification email. 


2. Under the "Email" tab, you can change your email content and template. Here we want to choose only specific information on the address field. The field tag for the address field in m form is {address}. Note that this may vary, you can find the field tags under the "Form Fields" drop down option in the email text editor. 

3. To choose what specific part of the address you want to display in the email alert, you can append the following:

- addr_line1
- addr_line2
- city
- state
- postal
- country


So let's say you want to fetch the "city" in the address field, then you can append it like this:


If you want to get the "state", then you can append it like this:



Basically, you are appending the ones listed above in the original address field tag, separate them by ":" (colon). Below is a sample of it. 


4. Make sure to save the changes and test your form. 

You can also display the same information (without the headers) when composing Custom Thank You Message or when displaying results in the Custom Thank You Message with the use of Confirmation Page Tricks.

You might also be interested in how you can choose specific information on a submission with a payment transaction. Here's a link to it: How to Strip Payment Labels and Separate Payment Info on Email Alerts.

Question? Please let us know below.


secretariamadureiracampoassis (September 12, 2011 at 08:11 PM)

ola fomos broqueado nao sei por que
apenas fiz um formulario para
captação de dados no sait

View Answer

mipueblo (July 12, 2012 at 06:09 PM)

Awesome How-to

View Answer

rowingqld (July 23, 2012 at 08:01 PM)


I am trying to strip the headers from my fields however get the following error message when I test it:

Dear {fullName:#first_3},
Normal 0 false false false EN-AU X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}
Registration Confirmation
This document confirms you registration on the course listed below. A receipt of purchase is available upon request.
Participant Name {fullName:#first_3} {fullName:#last_3}
Enrolled in Course {course}
Time 8.30am-3.00pm
Billing Address {address5}

Any help would be appreciated

View Answer

Lanaya (September 12, 2012 at 03:12 PM)

Can I strip the content from a Payment tool and just get the Total Price?

I want the Email to read something like this.
Please send (Total Price) to
John doe
1111 E Cave st.
pea Az. 88888

View Answer

cheekychappie2k2 (February 15, 2014 at 02:22 PM)

i cant seem to get this to work, i have followed the instructions, even got a test email sent which showed the correct details but it doesnt work, i really want to strip the information as i copy and paste into my system, please help

View Answer

cheekychappie2k2 (February 15, 2014 at 02:27 PM)

just realised that i need to unlock the table to be able to get this information. It would be helpful if that was added to the post so others can do this without issue.


View Answer

cheekychappie2k2 (February 16, 2014 at 09:59 AM)

there is a problem however, its annoying that it doesnt allow me to have hidden fields... it would be great if you could develop this better as to be honest, i cant imagine why anyone would want the headers... it should be the other way around i would suggest where people have to ask for headers

View Answer

embadigital (April 21, 2014 at 02:25 PM)

Is there a way to carry this feature over in the PDF of each submission? Since this hides the labels in emails but not the PDF, I'd like to echo another commenter suggestion that it would be nice to have an option of disabling this feature altogether.

View Answer

nrasmus (May 07, 2014 at 01:58 PM)

Hi, is there a way to collapse "addr_line2" when it's null?

View Answer

digi3dworks (January 30, 2015 at 07:02 PM)

I can not this to work on the thank you page (I'm creating a shipping label the customer can cut off and use..

I put in {address:addr_line1} but I get nothing. No error, no infomration but it was entered in the form.
The field name is: {address}
The field input is: #input_109_addr_line1, #input_109_addr_line2, #input_109_city, #input_109_state, #input_109_postal, #input_109_country

Can anyone help

View Answer

Jonah (November 10, 2015 at 03:20 AM)

Suggestion & Request. 1) the listed 1st step should be get the field tag of your address field. Because you are asking the users to Copy the field and paste the address field tag when they're already inside the email notification html source window. Which will mean that they have to close the email wizard, then copy the address field tag then go back to the email notification wizard to paste the needed info. And for the request, there should be a checkbox or Yes/No option if the users would like to strip the address headers in their email / thank you page. The steps you enumerated are easy to follow. But it's tedious and cumbersome :(

View Answer

CelesteInTex (May 09, 2016 at 04:50 PM)

This is really terrible!

I just spent 3 hours figuring this out, and it just shouldn't have to be this hard.

It took me a while to figure out that the address fields were all the same from form to form: addr_line1, addr_line2, etc. And I just couldn't extrapolate from the examples to my specific form, i.e. it took a while to figure out that the first part of the string, for me, should be address16. Lot of trial and error...

Then I had to figure out how to get the phone numbers and email into the email without the headers/labels.

I finally figured out that I had to go into the properties for each field to figure out the correct ID:

So this is what my email form finally contains:


And this is what is delivered, which is what I want:

Celeste LastName
United States
(132) 132-1313
(123) 213-2132

Like I said, it just shouldn't be this complicated to configure the email notification.

Thanks for your attention to this!

View Answer

iondjp (June 06, 2017 at 01:59 AM)

Can this method also be used to extrapolate the components parts of the address of the Autocomplete Address Widget or the Lob Address Verification Wizard?

View Answer

Send Comment