Data.FormValidator
Project Page
JSAN listing
Demo
Download
This (ugly) form is an example of a few of the features of Data.FormValidator.js.
Please note, FAR more customized validation is possible with this module.
password
(required)
tinymce textarea
(required, must contain "george") (NOTE: this will only test the tinymce support if the TinyMCE library is loaded.)
textarea
(optional, but required if "text1" is filled in)
text 1
(requird, must contain the text "bob")
text 1
(requird, must contain the text "bob")
text 2
(optional, but must contain both "sam" and "mmy" if it is filled in)
hidden
select-one
testA NO VALUE EXPLICITLY SET
t e s t 1 asdfasdf
t e s t 2 asdfasdf
balsdf asdfasdf
(required, must contain "test")
select-multiple
testA NO VALUE EXPLICITLY SET
test1 asdfasdf
test2 asdfasdf
balsdf asdfasdf
(required, must contain "test")
select-one
testA VALUE EXPLICITLY SET TO ""
testB VALUE EXPLICITLY SET TO ""
testC NO VALUE EXPLICITLY SET
t e s t 1 asdfasdf
t e s t 2 asdfasdf
balsdf asdfasdf
(required, must contain "test")
checkbox: asdf
qwer
(required)
radio: 1
2
(required)
dependency group:
testa value set to ""
testb value set to ""
testc no value set
test 1
(if any of these are filled in, they all must be filled in)
file:
(required)
Build In Constraint Tests email
(must contain valid email)
state
(must contain valid state)
province
(must contain valid province)
state_or_province
(must contain valid state_or_province)
zip
(must contain valid zip)
postcode
(must contain valid postcode)
zip_or_postcode
(must contain valid zip_or_postcode)
phone
(must contain valid phone)
american_phone
(must contain valid american_phone)
cc_number
(must contain valid cc_number)
cc_exp
(must contain valid cc_exp)
cc_type
(must contain valid cc_type)
ip_address
(must contain valid ip_address)