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 countrycodeRequested country
RECORD optionsOptions
STRING languageLanguage code to use (default: current tid language)
Return value
RECORDAddress fields in ordering, excluding country field
STRING fields.autocompleteRecommended HTML5 autcomplete attribute
STRING fields.fieldField name (eg 'street', 'nr_detail')
BOOLEAN fields.hideWe recommend hiding this field for this country, especially if not yet set
STRING fields.titleLabel in requested language
BOOLEAN onlyStreetIf true we recommend a single line version of the street field