If it fails, then the field will be highlighted and the failures will either be specified as a message below the
field or a label. Once the failure(s) has been rectified, the highlighting will disappear.
The following rules are allowed:
emptyA field is not empty
checkedA checkbox field is checked
emailA field is a valid e-mail address
urlA field is a url
integerA field is an integer value or matches an integer range*
decimalA field must be a decimal number or matches a decimal range*
numberA field is any number or matches a number range*
regExpMatches against a regular expression
creditCardA field is a valid credit card**
contains, doesntContainA field (doesn't) contain text (case insensitive)
containsExactly, doesntContainExactlyA field (doesn't) contain text (case sensitive)
is, notA field is (not) a value (case insensitive)
isExactly, notExactlyA field is (not) a value (case sensitive)
minLength, exactLength, maxLengthA field is at least/exactly/at most a set length
match, differentA field should (not) match the value of another validation field. Use the field ID as the value
minCount, exactCount, maxCountA multiple select field contains at least/exactly/at most a set number of selections
* For ranges, include the parameter value = "x..y"
where x is the minimum value and y is the maximum value.
Leave either side blank to not have a lower/upper limit
** Include comma separated string of card providers if required e.g. value = "visa,mastercard"