<forms:address />
A form control for capturing location / address information.
This control will offer address suggestions powered by Google, and show / hide fields appropriately for the selected country.
This control includes a number of separate fields for collecting the parts of an address. Each field maps to an Oncord datacolumn, but can be overridden if needed (via the corresponding attribute) to a different datacolumn.
Related Tutorials
Attributes
datacolumnAddress
string
Datacolumn Address
The datacolumn to which the address field will be mapped.
Default = 'contact_address'
datacolumnCountry
string
Datacolumn Country
The datacolumn to which the country field will be mapped.
Default = 'country_id'
datacolumnPostCode
string
Datacolumn Post Code
The datacolumn to which the post code field will be mapped.
Default = 'contact_postcode'
datacolumnState
string
Datacolumn Zone
The datacolumn to which the zone field will be mapped.
Default = 'contact_state'
datacolumnSuburbCity
string
Datacolumn City
The datacolumn to which the city field will be mapped.
Default = 'contact_suburb_city'
id
string
(Required) Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
rowtype
string
Row Type
Set a type for rendered Form Rows.
Default = 'two_column'
useplaceholders
bool
Use Placeholders
Whether to render placeholder text for field inputs or not.
Default = 'false'
userowlabels
bool
Use Row Labels
Whether to render labels for field rows or not.
Note that if useplaceholders is false, labels will always be rendered for usability.
Default = 'true'