AboutSupportDeveloper GuideVersion 22.3.18

The base type for form fields.

interface BaseField<T, D> {
    helperText?: string;
    key: string;
    label?: string;
    type: T;
    validation?: Record<string, any>;
    value?: D;
}

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: T

Field data type.

validation?: Record<string, any>

Validation rules used to validate user input.

value?: D

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