Format address

Merges a stored address as readable text, either on one line or across several lines.

Syntax

{{formatAddress data format}}

Parameters

Name Type Required Description
Data Text Required The address to format. Its parts are separated by a pipe character or by two spaces.
Format Number Optional 1 puts the whole address on one line, separated by commas. 2 splits it across several lines. Defaults to 1.

Examples

The examples below are based on an address stored as 123 Main St|Springfield|IL|62704|USA.

A. One line, using {{formatAddress Contact.address}}

123 Main St, Springfield, IL, 62704, USA

B. Several lines, using {{formatAddress Contact.address "2"}}

123 Main St
Springfield, IL 62704
USA

Note: The multi-line format recognizes an address of four or five parts and groups the city, state, and postal code onto one line. An address with a different number of parts is placed one part per line.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us