onFormComplete()
This event handler runs when a user completes the entire form.
Last updated
Was this helpful?
This event handler runs when a user completes the entire form.
Last updated
Was this helpful?
onFormComplete
is a prop and callback function to access and modify form state when a user completes the form. It is called a single time per form flow and runs after any other lifecycle events like submission or load. This function can be asynchronous.
The form completion event is defined as when the user completes the form in the same session or returns to a completed form that has edits disabled.
When the form is completed, Feathery will send the message Form completed
through a named feathery
, if it exists.
Define an Android Javascript Interface and where the Feathery form is loaded. Make sure to name your interface FeatheryInterface
when adding it, and define an onComplete()
method on the class. Feathery will call your onComplete()
method when the form is completed.
When the form is completed, Feathery will send the message Form completed
through the .
You can use onFormComplete
to redirect the user, show a completion message, and more. The function takes a single object that provides form-related state and handlers.
Consistently available form state and functions
A promise can be optionally returned from this function if it's asynchronous and you want execution to await.