GetAddressField (open)

Describe an address field, generalized for any country

Syntax

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

RECORD FUNCTION GetAddressField(STRING tag, RECORD options)

Parameters

STRING tag

Requested field

RECORD options

Options

STRING language

Language code to use (default: current tid language)

Return value

RECORD

A description of the requested field (throws if field is unknown)

STRING autocomplete

Recommended HTML5 autcomplete attribute

BOOLEAN required

If true, this this field is required for this country

STRING title

Label in requested language