middag-react
    Preparing search index...

    Interface FormPanelBlockData

    FormPanelBlockData — schema-driven form block payload.

    The backend sends a form schema (FormSchemaNode tree), initial values, server errors and submission metadata. FormPanelBlock renders the schema via FormField, validates client-side (Zod, additive to server validation) and submits via Inertia.

    interface FormPanelBlockData {
        action: string;
        errors: FormErrors;
        meta: {
            cancelHref?: string;
            cancelLabel?: string;
            multiStep?: boolean;
            submitLabel?: string;
            validation?: FormValidationMode;
        };
        method: FormMethod;
        schema: FormSchemaNode[];
        values: Record<string, unknown>;
    }
    Index
    action: string

    Submission endpoint URL.

    errors: FormErrors

    Server validation errors, keyed by field key.

    meta: {
        cancelHref?: string;
        cancelLabel?: string;
        multiStep?: boolean;
        submitLabel?: string;
        validation?: FormValidationMode;
    }

    Submission UX metadata.

    method: FormMethod

    HTTP method (post | put | patch).

    schema: FormSchemaNode[]

    Form schema tree — fields, sections, groups, headers.

    values: Record<string, unknown>

    Initial field values, keyed by field key.