Create submitting empty form
When I submit this form all inputs are ignored and it submits an empty form
message.txt8.99KB
useForm hook to handle form validation. The handleSubmit method from the useForm hook is used to handle form submission. If the form validation is successful, handleSubmit receives the form's data. If there's an issue with your validation setup, it might be causing your form to submit empty values. Source (https://refine.dev/blog/react-hook-form-validation-examples#form-submission)onSubmit event listener directly on the form and pass the handleSubmit method to it. If you're using the onFinish method from the useForm hook, make sure you're passing it to the handleSubmit function on the form correctly. Source (https://refine.dev/blog/react-hook-form-validation-examples#form-submission)onFinish hook that lets you override the button's default configuration and define what’s sent to the server. Source (https://refine.dev/blog/dynamic-forms-in-react-hook-form#handling-submission)useForm hook. react-hook-formregisteruseFieldArraysaveformProps.form