Control format email

default.control

Checks that input is a validly formatted email address

Output a control with the name "foo" that only accepts input matching an email address

{{control "foo" control-format="email"}}

or just

{{control "foo"}}

if the format property for the "foo" property in the model schema has been set to "email"

Error codes

  • email.no-at-symbol
  • email.invalid
Source:
See:

Methods

(static) initialize()

Sets instantValidation to true

Source:

(static) validate(value, optionsopt)

Checks:

  • contains @
  • matches email regex
Parameters
Name Type Attributes Description
value number
options object <optional>
Source: