Back to Refine

ServerSideFormValidation Example | Best Practices in Refine v5: MUI

documentation/docs/examples/form/mui/serverSideFormValidation.md

3.25.0583 B
Original Source

You can handle server-side form validation errors out-of-the-box with React Hook Form useForm.

When dataProvider returns rejected promise with errors field, useForm will automatically update the error state with the rejected errors field.

Refer to the server-side Form Validation documentation for more information. →

<CodeSandboxExample path="server-side-form-validation-material-ui" />