Skip to main content

FormSelectInput

Stentor API Reference


Stentor API Reference / stentor-models/src / FormSelectInput

Interface: FormSelectInput

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

Selection field similar to chips but rendered with checkboxes.

Provides a checkbox or radio button interface for item selection.

Extends​

Properties​

name​

name: string

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

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​

FormInput.name


title?​

optional title?: string

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

Optional title used to display on the input

Inherited from​

FormInput.title


description?​

optional description?: string

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

Optional line shown under the title that says why the field is asked or how to answer it.

For example: "Describe it in your own words. You don't need to know what's wrong."

Unlike a placeholder it stays visible while the visitor types.

Inherited from​

FormInput.description


type​

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

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

Type of the input

Inherited from​

FormInput.type


shape?​

optional shape?: "ROUND" | "SQUARE"

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

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

Inherited from​

FormInput.shape


condition?​

optional condition?: string

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

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​

FormInput.condition


mandatory?​

optional mandatory?: boolean

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

Is the field required.

Inherited from​

FormInput.mandatory


mandatoryError?​

optional mandatoryError?: string

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

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

Inherited from​

FormInput.mandatoryError


mandatoryGroup?​

optional mandatoryGroup?: string

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

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

Inherited from​

FormInput.mandatoryGroup


style?​

optional style?: object

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

React.CSSProperties style object to apply to the field.

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

Inherited from​

FormInput.style


radio?​

optional radio?: boolean

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

When true, allows only single selection (radio button behavior). When false or undefined, allows multiple selections with checkboxes.


defaultOpen?​

optional defaultOpen?: boolean

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

Whether the selection list is shown by default or collapsed


items​

items: SelectableItem[]

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

List of selectable items to display