@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface MultiSelectFormField

    Pick several options (c.state gets an array of option KEYS, in option order).

    interface MultiSelectFormField {
        name: string;
        label: string;
        required?: boolean;
        helper?: string;
        prompt?: string;
        error?: string;
        type: "multiselect";
        options: FormOptions;
        minSelected?: number;
        maxSelected?: number;
    }

    Hierarchy (View Summary)

    Index
    name: string

    Key of the answer in the form's values (and in c.state with flatten). Letters, digits and _, starting with a letter or _ (/^[A-Za-z_][A-Za-z0-9_]*$/).

    label: string

    Short label shown next to the input (native) or used as the question (degraded).

    required?: boolean

    Whether an answer is mandatory. Default true (false for optin).

    helper?: string

    Extra hint under the input (native) / appended to the question (degraded).

    prompt?: string

    Degraded mode only: full question text instead of label (+ helper).

    error?: string

    Error message used when an answer for this field is invalid (overrides the built-in ones).

    type: "multiselect"
    options: FormOptions
    minSelected?: number

    Minimum number of picks (default 1 when required, else 0).

    maxSelected?: number

    Maximum number of picks (default: all).