Hero Hook Form API / serverValidation
Variable: serverValidation
constserverValidation:object
Defined in: builders/validation-helpers.ts:146
Server-side validation integration
Type Declaration
applyServerErrors()
applyServerErrors: (
errors,setError) =>void
Apply server errors to form
Parameters
errors
Record<string, string[]>
setError
any
Returns
void
clearServerErrors()
clearServerErrors: (
fields,clearErrors) =>void
Clear server errors
Parameters
fields
string[]
clearErrors
any
Returns
void