Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Following is a list of pre-defined formatformats:

Format

Description

ANY

No input validation. Any text is acceptable.

ALPHA

The field under validation must be entirely alphabetic characters.

ALPHA-DASH

The field under validation may have alpha-numeric characters, as well as dashes and underscores.

NUMERIC

The field under validation must be numeric and limited to 9 numbers.

ALPHA-NUMERIC

The field under validation must be entirely alpha-numeric characters.

EMAIL

The field under validation must be formatted as an e-mail address.

DATE

The field under validation must be a valid date according to the strtotime PHP function.

URL

The field under validation must be a valid URL.

IP

The field under validation must be an IP address.

IPV4

The field under validation must be an IPv4 address.

IPV6

The field under validation must be an IPv6 address.

MAC

The field under validation must be a valid MAC address.

BOOLEAN

The field under validation must be able to be cast as a boolean. Accepted input inputs are true, false, 1, 0, "1", and "0".

CUSTOM

This field allows you to use a regex expression for validation. It should start with regex: - for example, to validate that a custom field value contains a valid IMEI (15 numeric digits), you would use regex:/^[0-9]{15}$/.