Skip to content

Global submit error hook or event handler #5061

@valqelyan

Description

@valqelyan

Is your feature request related to a problem? Please describe.

I want to globally handle failed submissions, for example:

  • Scroll to the first field with an error
  • Trigger a toast or highlight the error section
  • Perform analytics or tracking on form failure

Currently, I need to manually handle this for each form, which becomes repetitive across larger apps.

Describe the solution you'd like
Something like:

onSubmitFailed(({ errors, fields }) => {
  // Scroll to first error, show toast, etc.
});

Describe alternatives you've considered

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions