FormFieldTextAddressInput
Stentor API Reference / stentor-models/src / FormFieldTextAddressInput
Interface: FormFieldTextAddressInput
Defined in: packages/stentor-models/src/Form/FormField.ts:125
Specialized text input for address entry with autocomplete functionality.
Extends FormTextInput to provide Google Maps Places Autocomplete integration for address suggestions.
Extendsβ
Propertiesβ
nameβ
name:
string
Defined in: packages/stentor-models/src/Form/FormField.ts:79
Name of the form input, this is not human readable and is used to identify the field.
For example: "SERVICE" or "FULL_NAME"
Inherited fromβ
title?β
optionaltitle?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:83
Optional title used to display on the input
Inherited fromβ
typeβ
type:
"CARD"|"TEXT"|"DROPDOWN"|"CHECK"|"CHIPS"|"DATE"|"DATERANGE"
Defined in: packages/stentor-models/src/Form/FormField.ts:87
Type of the input
Inherited fromβ
shape?β
optionalshape?:"ROUND"|"SQUARE"
Defined in: packages/stentor-models/src/Form/FormField.ts:91
Optional, used to shape the input. Not applicable to all inputs.
Inherited fromβ
condition?β
optionalcondition?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:98
A condition that must be met for the field to be shown.
For example: "issue === 'service_repair'" - issue is a field name in this example
Inherited fromβ
mandatory?β
optionalmandatory?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:102
Is the field required.
Inherited fromβ
mandatoryError?β
optionalmandatoryError?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:106
Error message to show when the field is required but not filled out.
Inherited fromβ
mandatoryGroup?β
optionalmandatoryGroup?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:110
Group fields together where one of the fields in the group is required.
Inherited fromβ
style?β
optionalstyle?:object
Defined in: packages/stentor-models/src/Form/FormField.ts:116
React.CSSProperties style object to apply to the field.
For example: {{ width: '300px', height: '150px' }}
Inherited fromβ
formatβ
format:
"ADDRESS"
Defined in: packages/stentor-models/src/Form/FormField.ts:126
Format validation to apply to the input. Default is free text with no validation.
Overridesβ
mapsBaseUrl?β
optionalmapsBaseUrl?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:133
Base URL of an endpoint that adheres to the Google Maps Location Autocomplete API.
This can be either the official Google Maps API endpoint or a custom proxy endpoint that implements the same interface.
mapsUrlQueryParams?β
optionalmapsUrlQueryParams?:AddressAutocompleteParameters
Defined in: packages/stentor-models/src/Form/FormField.ts:139
Optional query parameters to help limit the results returned by the Google Maps Autocomplete API.
Use these parameters to restrict results by country, location, or other criteria.
googleMapsApiKey?β
optionalgoogleMapsApiKey?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:145
Required when you are using the official Google Maps Autocomplete API.
Not needed if using a custom proxy endpoint that handles authentication.
requireSelection?β
optionalrequireSelection?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:150
When true, the user must select an address from the autocomplete suggestions. Free-text entry is not allowed. Defaults to false (free-text allowed).
multiline?β
optionalmultiline?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:163
When true, renders as a textarea instead of a single-line input
Inherited fromβ
placeholder?β
optionalplaceholder?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:171
Placeholder text shown when the input is empty
Inherited fromβ
label?β
optionallabel?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:175
Accessible label for the input field
Inherited fromβ
rows?β
optionalrows?:number
Defined in: packages/stentor-models/src/Form/FormField.ts:179
Number of rows for textarea (only applicable when multiline is true)
Inherited fromβ
rowsMax?β
optionalrowsMax?:number
Defined in: packages/stentor-models/src/Form/FormField.ts:183
Maximum number of rows for textarea (only applicable when multiline is true)
Inherited fromβ
maxLength?β
optionalmaxLength?:number
Defined in: packages/stentor-models/src/Form/FormField.ts:187
Maximum character length allowed for the input