onError()
This event handler runs when the form runs into a validation error.
Overview
onError
is a <Feathery.Form> prop and callback function to access and modify form state when an error has occurred in the form.
For example, it's triggered when an integration fails or when the user fills out invalid information. If an error is manually set via the React library, this callback will not be triggered. This function can be asynchronous.
Usage
You can use onError
to navigate to a new step, update field values, and more. The function takes a single Context object that provides form-related state and handlers.
Context API
triggerData
Definition
triggerData
DefinitionReturn value
A promise can be optionally returned from this function if it's asynchronous and you want execution to await.
Last updated