How to Strip Headers from Address Field in Email Alerts

February 27, 2023

Update
The new email template no longer includes the headers from the address field. The below guide is only applicable for older forms that still use the old email template design.

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
  • City
  • State/Province
  • Postal/Zip Code
  • Country

While these headers are appropriate for submission records, they are not always desirable in the notification and autoresponder emails. For example, if a user enters the following name and address:

How to Strip Headers from Address Field in Email Alerts Image-1

You will receive the notification email with the headers in it.

How to Strip Headers from Address Field in Email Alerts Image-2

Compare that to the following without the headings or labels.

How to Strip Headers from Address Field in Email Alerts Image-3

If you want to format the address field without the headers in the notification email, you’ll have to remove them. It’s just a small trick. Please follow the steps below.

  1. In the Form Builder, go to the Settings tab.
  2. Click Emails on the left.
  3. Hover your mouse to the notification email template, and click the Edit (pencil icon).
How to Strip Headers from Address Field in Email Alerts Image-4
  1. In the Email tab, you’ll see the address field and all other form fields. You will have to remember the unique name of the address field, which you will see enclosed in the curly brackets. In the below image, you’ll see it as {address}. It may be different in your form.
How to Strip Headers from Address Field in Email Alerts Image-5
  1. 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 {address:city}. If you’re going to get the State, you can append it like {address:state}.

How to Strip Headers from Address Field in Email Alerts Image-6
  1. Save the changes by clicking the Save button, and test your form to see the final output.

You can also display the same information (without the headers) when composing Custom Thank You Message.

Lastly, you might also be interested in how you can choose specific information on a submission with a payment transaction. Kindly visit the following link for more details.

Academy Logo

Introduction to Form Building

Emails

Go to course :Emails
lesson-2 - image
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • scholaschools - Profile picture
  • scholaschools - Profile picture
  • PSDWebdesigns - Profile picture
  • PicoteSolutions - Profile picture
  • FCMG1996 - Profile picture
  • DavidGrayTV - Profile picture
  • iondjp - Profile picture
  • CelesteInTex - Profile picture
  • Jonah - Profile picture
  • digi3dworks - Profile picture
  • nrasmus - Profile picture
  • embadigital - Profile picture
  • cheekychappie2k2 - Profile picture
  • cheekychappie2k2 - Profile picture
  • cheekychappie2k2 - Profile picture
  • dalen52 - Profile picture
  • Cantodorio - Profile picture
  • Florenciox - Profile picture
  • ledalim - Profile picture
  • yons77 - Profile picture
  • SuportePink - Profile picture
  • FLORIYES - Profile picture
  • shaunnaylor - Profile picture
  • gmotta11 - Profile picture
  • eiermann - Profile picture
  • GallantHealthInstitute - Profile picture
  • pixelshaw - Profile picture
  • bizdata - Profile picture
  • MaynMarcTravelSmart - Profile picture
  • Allan Muir - Profile picture
  • markashton - Profile picture
  • Lanaya - Profile picture
  • rowingqld - Profile picture
  • mipueblo - Profile picture
  • secretariamadureiracampoassis - Profile picture