submitForm
Trigger a form submission. If form validation fails, onError
will be called, if form submit successfully, onSubmit
will be called.
Your can submit form anywhere, even outside of the form.
Most of the time, Creating a custom component is a more better way to submit a form.
Here is the live demo:
Loading...
LIVE DEMO