Skip to Content
ContentAPIVariablesVariable: serverValidation

Hero Hook Form API v2.5.1


Hero Hook Form API / serverValidation

Variable: serverValidation

const serverValidation: 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