FormDateTimeInput
Stentor API Reference / stentor-models/src / FormDateTimeInput
Interface: FormDateTimeInput
Defined in: packages/stentor-models/src/Form/FormField.ts:609
Combined date and appointment time picker.
Renders a calendar beside a column of appointment times generated from schedule,
so the times on offer follow the date the user picks. A single field owns both values,
but it submits them separately: the chosen time under the field's own name
(plus the _start/_end members a selectable item already contributes), the date under
dateFieldName, and a combined offset-bearing ISO timestamp under dateTimeFieldName.
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β
title?β
optionaltitle?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:85
Optional title used to display on the input
Inherited fromβ
description?β
optionaldescription?: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β
shape?β
optionalshape?:"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β
condition?β
optionalcondition?: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β
mandatory?β
optionalmandatory?:boolean
Defined in: packages/stentor-models/src/Form/FormField.ts:112
Is the field required.
Inherited fromβ
mandatoryError?β
optionalmandatoryError?: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β
mandatoryGroup?β
optionalmandatoryGroup?: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β
style?β
optionalstyle?: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β
typeβ
type:
"DATETIME"
Defined in: packages/stentor-models/src/Form/FormField.ts:610
Type of the input
Overridesβ
scheduleβ
schedule:
TimeSlotSchedule
Defined in: packages/stentor-models/src/Form/FormField.ts:614
Which appointment times to offer.
dateFieldName?β
optionaldateFieldName?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:618
Field name the selected date is submitted under. Defaults to "preferred_date".
dateTimeFieldName?β
optionaldateTimeFieldName?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:623
Field name the combined date and time is submitted under, as an ISO 8601 string carrying the schedule's UTC offset. Defaults to "datetime".