Skip to main content
Clientside validation in Drupal 7
Main menu
Form api
Webform
You are here
Home
Navigation
Examples for fapi validation
Examples for form api
Examples for vertical tabs
User login
Username
*
Password
*
Request new password
Examples for fapi validation
Numeric
*
Required. Use only numbers.
Alpha
*
Required. Use only alpha characters.
Alpha numeric
*
Required. Use only alpha numeric characters.
Email
*
Required. Enter a valid email address.
Length
*
Required. Length between 2 and 10.
Specific characters
*
Required. Enter a combination of the following characters: a, b, c, d or e.
URL
*
Required. Enter a valid url.
IPv4
*
Required. Enter a valid IPv4.
Alpha dash
*
Required. Use only alpha numerics, hyphen and underscore.
Digit
*
Required. Use only digits.
Decimal (unspecified)
*
Required. Enter a decimal value using the decimal point.
Decimal (specified)
*
Required. Enter a decimal value using the decimal point. Two digits, three decimals.
Custom PCRE regexp
*
Required. Enter 4 digits, first digit must be a 9.