The address object can be found as a property on the following objects:

Variables

.id

Address internal unique ID. Can be used to generate unique element IDs and reference specific address record when updating or deleting it.

TYPE
int
CONSTRAINTS
>= 1
PRESENCE
always

Examples

CODEaddress.id
OUTPUT123

.line1, .line2 & .line3

Address lines. Free text containing specific address details, such as streen, building, floor etc.

TYPE
string
CONSTRAINTS
max 50 characters
PRESENCE
always, but could be blank

Examples

CODEaddress.line1
OUTPUT123 Main Rd.
CODEaddress.line2
OUTPUTBuilding A, 2nd floor
CODEaddress.line3
OUTPUTOffice 132

.city

City / town / village name.

TYPE
string
CONSTRAINTS
max 30 characters
PRESENCE
always, but could be blank

Examples

CODEaddress.city
OUTPUTParis

.region

Region / state / province name.

TYPE
string
CONSTRAINTS
max 30 characters
PRESENCE
always, but could be blank

Examples

CODEaddress.city
OUTPUTParis

.country

Country information object.

TYPE
country object
CONSTRAINTS
n/a
PRESENCE
always

Examples

CODEaddress.country.code
OUTPUTDE
CODEaddress.country.name
OUTPUTGermany

.code

ZIP / area / postal code.

TYPE
string
CONSTRAINTS
alpha-numeric and dashes
PRESENCE
always, but could be blank

Examples

CODEaddress.code
OUTPUT2048

.metadata

Address metadata object. Metadata object is used to access additional address information that have been stored with the address.

TYPE
metadata object
CONSTRAINTS
n/a
PRESENCE
always

Examples

CODEaddress.metadata.use
OUTPUTshipping

Variable Dump

Copy and paste the below HTML into any template page, to see all address data dumped to your page. You can then simply remove the unnecessary fields and other elements, and format the remaining fields however necessary to achieve the desired look and feel. Note that the dump assumes that address object is available in the current scope. Change this if your address object is available under another name.

<style>
.thedump .name{
    background-color:#3A5FCD;
    color:white;
    padding:0.5em;
    font-weight:bold;
}
.thedump .code{
    background-color:#888888;
    color:white;
    padding:0.5em;
}
.thedump .out{
    background-color:white;
    color:#555555;
    padding:0.5em;
    border-bottom:1px solid #CCCCCC;
    margin-bottom:1em;
}
.thedump .code pre{
    padding:0;
    margin:0;
    font-size:1.1em;
}
</style>

<div class="thedump">
    <div class="name">Address ID</div>
    <div class="code"><pre>&#123;&#123; address.id &#125;&#125;</div>
    <div class="out">{{ address.id }}</div> 
    
    <div class="name">Address line 1</div>
    <div class="code"><pre>&#123;&#123; address.line1 &#125;&#125;</div>
    <div class="out">{{ address.line1 }}</div> 
    
    <div class="name">Address line 2</div>
    <div class="code"><pre>&#123;&#123; address.line2 &#125;&#125;</div>
    <div class="out">{{ address.line2 }}</div> 
    
    <div class="name">Address line 3</div>
    <div class="code"><pre>&#123;&#123; address.line3 &#125;&#125;</div>
    <div class="out">{{ address.line3 }}</div> 
    
    <div class="name">Address city</div>
    <div class="code"><pre>&#123;&#123; address.city &#125;&#125;</div>
    <div class="out">{{ address.city }}</div> 
    
    <div class="name">Address region</div>
    <div class="code"><pre>&#123;&#123; address.region &#125;&#125;</div>
    <div class="out">{{ address.region }}</div> 
   
	    <div class="name">Country Code</div>
    <div class="code"><pre>&#123;&#123; address.country.code &#125;&#125;</div>
    <div class="out">{{ address.country.code }}</div> 
    
    <div class="name">Country Name</div>
    <div class="code"><pre>&#123;&#123; address.country.name &#125;&#125;</div>
    <div class="out">{{ address.country.name }}</div> 

    <div class="name">Address code</div>
    <div class="code"><pre>&#123;&#123; address.code &#125;&#125;</div>
    <div class="out">{{ address.code }}</div> 
</div>