AddressFieldConfigType
Configuration for a single field in an address form.
Fields
Pre-filled seed value shown before any user interaction. Null if not set.
Validation error messages for this field. Empty when the field is valid or no validation has been run.
Input widget type to render for this field.
Whether this field's SELECT options are fetched via the autocompleteAddressFieldOptions query rather than inlined in options. When true, options is empty and the client should call that query with this field's name.
Country-specific human-readable label, e.g. 'Suburb' or 'Postcode'.
Machine identifier for the field, e.g. 'locality' or 'postal_code'.
Available options for SELECT fields with a fixed option list. Empty for autocompletable SELECT fields (see hasAutocomplete); fetch those via the autocompleteAddressFieldOptions query instead. Null for all other field types.
Whether the user can interact with this field. False for hidden fields.
Client-side validation constraints for this field.
Submitted or pre-loaded form value. Null if not set.
Example
{
"default": "debate-current-guess-star-become",
"errors": "send-bed-off-fund-dinner",
"fieldType": "TEXT",
"hasAutocomplete": true,
"label": "whom-American-cost-society-often",
"name": "TV-early-big-particularly-space",
"options": [AddressFieldOptionType],
"userEditable": true,
"validation": AddressFieldValidationRuleType,
"value": "begin-detail-space-I-environmental"
}