onLoad()
This event handler runs when a step of the form is loaded.
Overview
Usage
import { init, Form } from '@feathery/react';
function App() {
// Initialize Feathery
init('SDKKey', '[email protected]');
// Show the `aBcDeF` Feathery form
return <Form
aBcDeF='aBcDeF'
// Custom form step load logic
onLoad={(context) => {
if (context.stepName === 'begin') context.setValues({'beginForm': True});
else if (context.stepName === 'next-step') logEvent("Loaded Step 2");
}}
/>
}Context API
Key
Type
Description
Return value
Last updated
Was this helpful?