AboutSupportDeveloper GuideVersion 22.3.18

The base type for form fields.

interface DateField<W> {
    helperText?: string;
    key: string;
    label?: string;
    type: "date";
    validation?: Record<string, any>;
    value?: DateFieldValue;
    widget: W;
}

Type Parameters

Hierarchy (view full)

Properties

helperText?: string

Helper text.

key: string

The property key that this field value will appear in the returned NotificationFormSubmittedEvent.form|form object.

label?: string

Input label.

type

Field data type.

validation?: Record<string, any>

Validation rules used to validate user input.

Default value for field, and where it will be written to

widget: W