Skip to main content

FormFieldTextAddressInput

Stentor API Reference


Stentor API Reference / stentor-models/src / FormFieldTextAddressInput

Interface: FormFieldTextAddressInput

Defined in: packages/stentor-models/src/Form/FormField.ts:93

Text input. Validate according to the format.

Extends​

Properties​

name​

name: string

Defined in: packages/stentor-models/src/Form/FormField.ts:53

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​

FormTextInput.name


title?​

optional title: string

Defined in: packages/stentor-models/src/Form/FormField.ts:57

Optional title used to display on the input

Inherited from​

FormTextInput.title


type​

type: "CARD" | "TEXT" | "DROPDOWN" | "CHECK" | "CHIPS" | "DATE" | "DATERANGE"

Defined in: packages/stentor-models/src/Form/FormField.ts:61

Type of the input

Inherited from​

FormTextInput.type


shape?​

optional shape: "ROUND" | "SQUARE"

Defined in: packages/stentor-models/src/Form/FormField.ts:65

Optional, used to shape the input. Not applicable to all inputs.

Inherited from​

FormTextInput.shape


condition?​

optional condition: string

Defined in: packages/stentor-models/src/Form/FormField.ts:72

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​

FormTextInput.condition


mandatory?​

optional mandatory: boolean

Defined in: packages/stentor-models/src/Form/FormField.ts:76

Is the field required.

Inherited from​

FormTextInput.mandatory


mandatoryError?​

optional mandatoryError: string

Defined in: packages/stentor-models/src/Form/FormField.ts:80

Error message to show when the field is required but not filled out.

Inherited from​

FormTextInput.mandatoryError


mandatoryGroup?​

optional mandatoryGroup: string

Defined in: packages/stentor-models/src/Form/FormField.ts:84

Group fields together where one of the fields in the group is required.

Inherited from​

FormTextInput.mandatoryGroup


style?​

optional style: object

Defined in: packages/stentor-models/src/Form/FormField.ts:90

React.CSSProperties style object to apply to the field.

For example: {{ width: '300px', height: '150px' }}

Inherited from​

FormTextInput.style


format​

format: "ADDRESS"

Defined in: packages/stentor-models/src/Form/FormField.ts:94

Overrides​

FormTextInput.format


mapsBaseUrl?​

optional mapsBaseUrl: string

Defined in: packages/stentor-models/src/Form/FormField.ts:98

Base URL of an endpoint that adheres to the Google Maps Location Autocomplete API.


mapsUrlQueryParams?​

optional mapsUrlQueryParams: AddressAutocompleteParameters

Defined in: packages/stentor-models/src/Form/FormField.ts:102

Optional query parameters to help limit the results returned by the Google Maps Autocomplete API.


googleMapsApiKey?​

optional googleMapsApiKey: string

Defined in: packages/stentor-models/src/Form/FormField.ts:106

Required when you are using the official Google Maps Autocomplete API.


multiline?​

optional multiline: boolean

Defined in: packages/stentor-models/src/Form/FormField.ts:113

Inherited from​

FormTextInput.multiline


placeholder?​

optional placeholder: string

Defined in: packages/stentor-models/src/Form/FormField.ts:115

Inherited from​

FormTextInput.placeholder


label?​

optional label: string

Defined in: packages/stentor-models/src/Form/FormField.ts:117

Inherited from​

FormTextInput.label


rows?​

optional rows: number

Defined in: packages/stentor-models/src/Form/FormField.ts:120

Inherited from​

FormTextInput.rows


rowsMax?​

optional rowsMax: number

Defined in: packages/stentor-models/src/Form/FormField.ts:121

Inherited from​

FormTextInput.rowsMax