Skip to main content

betaThis is a new capability. Help us improve it and give your feedback on Slack.

UK Address Field

Structured address input for collecting UK postal addresses.

Preview

With postcode lookup

What is your address?

or

Without postcode lookup

What is your address?

JSON definition

{
"type": "UkAddressField",
"name": "fieldName",
"title": "Question title",
"hint": "",
"shortDescription": "",
"options": {}
}

Properties

PropertyTypeRequiredDescription
hintstringNoHint text displayed below the field label to help the user answer the question.
shortDescriptionstringNoA short description of the field used in the check-your-answers summary.

Options

PropertyTypeRequiredDescription
classesstringNoAdditional CSS classes applied to the component.
customValidationMessagesobjectNoA map of Joi error codes to custom error messages.
hideTitlebooleanNoWhen true, hides the component or section title.
instructionTextstringNoAlternative text read by screen readers in place of the field title.
optionalTextbooleanNoWhen true, appends '(optional)' to the field label.
requiredbooleanNoWhether the field must be filled in. Defaults to true.
usePostcodeLookupbooleanNoWhen true, enables a postcode lookup integration.