GetAddressFormat (open)

Describe the address format for a country

Syntax

LOADLIB "mod::wrd/lib/address.whlib";

RECORD FUNCTION GetAddressFormat(STRING countrycode, RECORD options)

Parameters

STRING countrycode

Requested country

RECORD options

Options

STRING language

Language code to use (default: current tid language)

Return value

RECORD

Address fields in ordering, excluding country field

STRING fields.autocomplete

Recommended HTML5 autcomplete attribute

STRING fields.field

Field name (eg 'street', 'nr_detail')

BOOLEAN fields.hide

We recommend hiding this field for this country, especially if not yet set

STRING fields.title

Label in requested language

BOOLEAN onlyStreet

If true we recommend a single line version of the street field