Validators

Edit on Github

BootstrapValidator comes with various built-in validators listed in the alphabetical order as following:

No. Name Available from Description
1 base64 0.3.2 Validate a base64 encoded string
2 between 0.1.0 Check if the input value is between (strictly or not) two given numbers
3 callback 0.2.0 Return the validity from a callback method
4 choice 0.3.0 Check if the number of checked boxes are less or more than a given number
5 creditCard 0.2.0 Validate a credit card number
6 cusip 0.4.5 Validate a CUSIP
7 cvv 0.3.2 Validate a CVV number
8 date 0.3.1 Validate date
9 different 0.2.0 Return true if the input value is different with given field's value
10 digits 0.1.0 Return true if the value contains only digits
11 ean 0.4.4 Validate an EAN (International Article Number)
12 emailAddress 0.1.0 Validate an email address
13 file 0.4.3 Validate file
14 greaterThan 0.1.0 Return true if the value is greater than or equals to given number
15 grid 0.4.4 Validate a GRId (Global Release Identifier)
16 hex 0.4.0 Validate a hexadecimal number
17 hexColor 0.1.0 Validate a hex color
18 iban 0.4.0 Validate an International Bank Account Number (IBAN)
19 id 0.4.5 Validate identification number. Support 25 countries
20 identical 0.1.0 Check if the value is the same as one of particular field
21 imei 0.4.4 Validate an IMEI (International Mobile Station Equipment Identity)
22 integer 0.4.0 Validate an integer number
23 ip 0.3.2 Validate an IP address. Support both IPv4 and IPv6
24 isbn 0.3.2 Validate an ISBN (International Standard Book Number). Support both ISBN 10 and ISBN 13
25 isin 0.4.5 Validate an ISIN (International Securities Identification Number)
26 ismn 0.4.4 Validate an ISMN (International Standard Music Number)
27 issn 0.4.4 Validate an ISSN (International Standard Serial Number)
28 lessThan 0.1.0 Return true if the value is less than or equals to given number
29 mac 0.3.2 Validate a MAC address
30 notEmpty 0.1.0 Check if the value is empty
31 numeric 0.4.0 Check if the value is numeric
32 phone 0.3.2 Validate a phone number
33 regexp 0.1.0 Check if the value matches given Javascript regular expression
34 remote 0.1.0 Perform remote checking via Ajax request
35 rtn 0.4.5 Validate a RTN (Routing transit number)
36 sedol 0.4.5 Validate a SEDOL (Stock Exchange Daily Official List)
37 siren 0.4.2 Validate a Siren number
38 siret 0.4.2 Validate a Siret number
39 step 0.3.2 Check if the value is valid step one
40 stringCase 0.4.0 Check if a string is a lower or upper case one
41 stringLength 0.1.0 Validate the length of a string
42 uri 0.1.0 Validate an URL address
43 uuid 0.4.0 Validate an UUID, support v3, v4, v5
44 vat 0.4.3 Validate VAT number. Support 32 countries
45 vin 0.4.2 Validate an US VIN (Vehicle Identification Number)
46 zipCode 0.1.0 Validate a zip code

Comments

If you want to report a bug, please submit the issue on Github. Do NOT post the issue here.

For a general question or feedback, use the form below.