Custom Server-Side Validation

The Ninja Forms submission processes as an AJAX request, which expects a JSON object response from the server.

Custom validation errors can be set by manually terminating the request cycle, providing the errors as a JSON response.

Example

Error Formatting

Form Error Example

Field Error Example

Field validation on the server side is handled by the registered field class corresponding to each field type.