Validation

Types of Validation

Basic Rules

Basic validation rules consist of the built in validation that JForms provides for you to configure when creating your form. We enforce these rules for you on the back-end. Details of the different validation rules are outlined below.

Custom JavaScript

Not supported yet.

Basic Validation Rules

These can all be set and configured via the create form wizard. These rules are all enforced by our back-end and a formatted error response will be returned back. More details on this error format in the submissions section.

Required

This rule can be set for any field type. It will require the submission to have a value for the field.

Minimum / Maximum Length

These rules dictate the min and max length that a string input can have.

Minimum / Maximum Value

These rules dictate the min and max value that a number input can have.

Minimum / Maximum Date

These rules dictate the min and max date value that a date input can have.

Regex

Not supported yet.