AboutSupportDeveloper GuideVersion 22.3.18

The base type for form fields.

interface CheckboxGroupField<W> {
    helperText?: string;
    key: string;
    label?: string;
    type: "checkboxGroup";
    validation?: Record<string, any>;
    value?: string[];
    widget: W;
}

Type Parameters

Hierarchy (view full)

  • BaseField<"checkboxGroup", string[]>
    • CheckboxGroupField

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.

value?: string[]

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

widget: W