How to programmatically reset a form ? #991
Answered
by
Hyperkid123
salembaira
asked this question in
Need help
-
Hi guys, Thank you for this awesome piece of work!! How do you handle resetting a form after say submitting so the user can fill another one without reloading the page? Best, |
Beta Was this translation helpful? Give feedback.
Answered by
Hyperkid123
Mar 17, 2021
Replies: 1 comment 1 reply
-
Hi @baira. The onSubmit function receives 3 arguments. Values, formApi and complete function. The form API does contain a Check out this example: https://codesandbox.io/s/data-driven-forms-example-forked-i2col |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rvsia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @baira.
The onSubmit function receives 3 arguments. Values, formApi and complete function. The form API does contain a
reset
function which will reset the form.Check out this example: https://codesandbox.io/s/data-driven-forms-example-forked-i2col