This function performs validation of all fields on the current page.
It is supplied with a DOM element, or server-side equivalent, that represents the current form. It returns an array of validation errors.
Argument
Argument | Type | Description |
---|---|---|
currentForm | Object, required | DOM-style representation of the current form |
Returns
Array
Last modified on 6 March 2020