How to Strip Headers from Postal Addresses in Email Alerts

Last Update: March 14, 2016

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

-Street Address

-Street Address Line 2

-City

-State/Province

-Postal/Zip Code

-Country



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:




How to Strip Headers from Postal Addresses in Email Alerts


1. Open/Edit your form in our form builder.

2. Click the "Emails" button from the toolbar


3. Select the notification where you want to strip the address headers, click the EDIT option:



4. You have to click the "Next" button to view/edit the email body of the notifier.

5. In the email body, you'll see the field tag for the address. Please note that the field tag depends on how you have named your field. In my case, the name of my address field is "Address" so its field tag will most likely be {address}. The field tags are enclosed in "{ }". To get the field tags, you can easily click the "Form Fields" list at the toolbar.


6. Choose an address field that you would like to strip the headers. Copy that address field tag. Press Enter key on your keyboard to add space. Paste the address field tag, in this case, paste up to six (6) tags. Then add a COLON before the closing tag } (right parenthesis) followed by the following strings:

addr_line1

addr_line2

city

state

postal

country


Example:

If your Address Field tag is {address}, you should have the following settings:



7. Click the "Save" button to save your form notification settings. Hit "Save" button in the editor to save your form entire changes.


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.


Question? Please let us know below!


12 Comments...


   
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)

Hi

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.

thanks

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:

{participant1}
{address16:addr_line1}
{address16:addr_line2}
{address16:city}
{address16:state}
{address16:postal}
{address16:country}
{phoneNumber7:full}
{altPhone:full}
{email4}

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

Celeste LastName
DummyAddress1
DummyAddress2
City/Town
State
Zip
United States
(132) 132-1313
(123) 213-2132
celeste@myemail.com

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

Thanks for your attention to this!

View Answer


Send Comment