Event Handlers
Pass event handlers as props to the <Form> component to get access to the form at specific interaction points, including submission, errors, and more.
Custom event handlers, in the form of callback functions, are a powerful way for you to run custom code at critical moments when the user interacts with your Feathery form. They allow you to completely control and modify the default behavior of the form.
Pass your callback functions in directly as props of your <Form> component.
onAction
optional function
Callback function triggered when the user clicks a button configured to perform a custom action. Full reference
onView
optional function
Callback function run when an element, specified with onViewElements
, enters or leaves your current screen view. Full reference
onViewElements
optional array
String array consisting of the element IDs that you want to track with onView
.
Last updated