GetAddressFormat (open)

Describe the address format for a country


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

RECORD FUNCTION GetAddressFormat(STRING countrycode, RECORD options)


STRING countrycode

Requested country

RECORD options


STRING language

Language code to use (default: current tid language)

Return value


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