custom
Support for custom client-side (JavaScript-based) validators.
username_unique
Check if an entered username is unique, by looking in the m_identity table for the given username:
email_unique
Check if an entered e-mail address is unique, by looking in the m_identity table for the email key:
length
Check the length of a text input.
acceptance
Check if an input value evaluates to true.
confirmation
Check if two inputs are the same.
date
Validate input date against a given date format.
email
Check if the content of the input field is an e-mail address.
format
Regular expression test.
name_unique
A validator to check whether a resource’s name is unique:
numericality
Numerical input and range check.
postback
Performs a custom server side validation of an input value. This allows you to add your own validation logic to HTML form fields.
presence
Check if an input has been filled in or checked.
json

Models Reference Notifications

See more

validate

The validator tag accepts the following arguments:

Forms and validation

You should validate all input data entered in forms. In Zotonic you create forms by writing plain HTML. You can attach…

All Validators

acceptance

Check if an input value evaluates to true.

confirmation

Check if two inputs are the same.

custom

Support for custom client-side (JavaScript-based) validators.

date

Validate input date against a given date format.

email

Check if the content of the input field is an e-mail address.

email_unique

Check if an entered e-mail address is unique, by looking in the m_identity table for the email key:

format

Regular expression test.

length

Check the length of a text input.

name_unique

A validator to check whether a resource’s name is unique:

numericality

Numerical input and range check.

postback

Performs a custom server side validation of an input value. This allows you to add your own validation logic to HTML…

presence

Check if an input has been filled in or checked.

username_unique

Check if an entered username is unique, by looking in the m_identity table for the given username: