Test Textbox Validation Widgets
First Name:
Textbox class, Attributes: {trim: true, ucFirst: true, class: 'medium'}, First letter of each word is upper case.
Last Name:
Textbox class, Attributes: {trim: true, uppercase: true, class: 'medium'}, all letters converted to upper case.
Age:
Textbox class, Attributes: {trim: true, digit: true, class: 'small'}, all but digits extracted.
Occupation:
ValidationTextbox class, Attributes: {lowercase: true, required: true}. Displays message if field is missing.
* The value entered is not valid.
* The occupation is required.
* This value out of range.
Elevation:
IntegerTextbox class, Attributes: {trim: true, required: true, signed: true}, Enter feet above sea level with a sign.
Invalid elevation. Be sure to use a plus or minus sign.
* This value is required.
* This value out of range.
Population:
IntegerTextbox class, Attributes: {trim: true, required: true, signed: false, separator: ","}.
This widget was added in script, not markup.
Invalid population. Be sure to use commas.
* This value is required.
* This value out of range.
Real Number:
RealNumberTextbox class, Attributes: {trim: true, required: true}. Enter any sort of real number.
This is not a valid real number.
* This value is required.
* This value out of range.
Exponential Notation:
RealNumberTextbox class, Attributes: {exponent: true}. Enter a real number in exponential notation.
Number must be in exponential notation. Example +5E-28
* This value is required.
* This value out of range.
Annual Income:
CurrencyTextbox class, Attributes: {cents: true}. Enter dollars and cents.
Invalid amount. Include dollar sign, commas, and cents. Example: $12,000.00
* This value is required.
* This value out of range.
IPv4 Address:
IpAddressTextbox class, Attributes: {allowIPv6: false, allowHybrid: false}. Also Dotted Hex works, 0x18.0x11.0x9b.0x28
Invalid IPv4 address.
* This value is required.
* This value out of range.
IPv6 Address:
IpAddressTextbox class, Attributes: {allowDottedDecimal: false, allowDottedHex: false}. Also hybrid works, x:x:x:x:x:x:d.d.d.d
Invalid IPv6 address, please enter eight groups of four hexadecimal digits. x:x:x:x:x:x:x:x
* This value is required.
* This value out of range.
URL:
UrlTextbox class, Attributes: {required: true, trim: true, scheme: true}.
Invalid URL. Be sure to include the scheme, http://...
* This value is required.
* This value out of range.
Email Address
EmailTextbox class, Attributes: {required: true, trim: true}.
Invalid Email Address.
* This value is required.
* This value out of range.
Email Address List
EmailListTextbox class, Attributes: {required: true, trim: true}.
Invalid Email Address List.
* This value is required.
* This value out of range.
Date (American format)
DateTextbox class, Attributes: {required: true, trim: true}. Works for leap years
Invalid date. Use MM/DD/YYYY format.
* This value is required.
* This value out of range.
Date (European format)
DateTextbox class, Attributes: {format:"YYYY.MM.DD", required: true, trim: true}. Works for leap years
Invalid date. Use YYYY.MM.DD format.
* This value is required.
* This value out of range.
12 Hour Time
TimeTextbox class, Attributes: {required: true, trim: true}
Invalid time. Use h:mm:ss am/pm type format.
* This value is required.
* This value out of range.
24 Hour Time
TimeTextbox class, Attributes: {format:"HH:mm:ss", required: true, trim: true}
Invalid time. Use HH:mm:ss where HH is 00 - 23 hours.
* This value is required.
* This value out of range.
US State 2 letter abbr.
UsStateTextbox class, Attributes: {required: true, trim: true, uppercase: true}
Invalid US state abbr.
* This value is required.
* This value out of range.
US Zip Code
UsZipTextbox class, Attributes: {required: true, trim: true} Five digit Zip code or 5 + 4.
Invalid US Zip Code.
* This value is required.
* This value out of range.
US Social Security Number
UsSocialSecurityNumberTextbox class, Attributes: {required: true, trim: true}
Invalid US Social Security Number.
* This value is required.
* This value out of range.
10-digit US Phone Number
UsPhoneNumberTextbox class, Attributes: {required: true, trim: true}
Invalid US Phone Number.
* This value is required.
* This value out of range.
view data