bothy-sdk
    Preparing search index...

    Interface FormField

    One field of a form.

    interface FormField {
        choices?: readonly string[];
        label: string;
        maxLength?: number;
        name: string;
        required?: boolean;
        type: string;
    }
    Index

    Properties

    choices?: readonly string[]

    Distinct answers; required for choice and only there.

    label: string

    Display text.

    maxLength?: number

    Longest text, at least 1; only for text and textarea.

    name: string

    Key of the field in the submitted values, [a-z][a-z0-9_]*, unique in the form.

    required?: boolean

    Whether the field must be filled (default false).

    type: string