FormSanity Attributes

Types
Alphanumeric Characters:

letters/numbers only

CVV:

a 3 or 4 digit number

Date:

mm/dd/yyyy

converted formats:

  • mm/dd/yy
  • mm.dd.yyyy
  • mm.dd.yy
  • mm-dd-yyyy
  • mm-dd-yy
Email Address:

must be an email address

Email List:

email addresses separated by spaces, commas, or both

Email List (textarea)

email addresses separated by any combination of spaces, commas, or new lines

Identifier:

letters, numbers, underscores, or dashs

IP Address:

IPv4 address, example: 192.168.1.1

Letters:

letters only

Name:

letters, periods, commas, hyphens, apostrophes

No HTML

cannot contain HTML code

Numbers
Number:

positive or negative number, or zero

Nonnegative Number:

positive number, or zero

Positive Number:

positive number

Integer:

positive or negative whole number, or zero

Nonnegative Integer:

positive whole number, or zero

Positive Integer:

positive whole number

Password:

6 or more characters, no spaces

Pattern
Missouri Driver License #:

1 letter followed by 5-9 numbers; or 9 numbers

Nebraska Driver License #:

1 letter (A,B,C,E,G,H or V), followed by 3-8 numbers

Maine Driver License #:

7 numbers or if under 21, 7 numbers followed by an X

Montana Driver License #:

1 letter, 1 number, 1 alphanumeric, 2 numbers, 3 letters, and 1 number; or 9 numbers; or 13 numbers

Phone Number:

###-###-####

converted formats:

  • (###) ###-####
  • 1-###-###-####
  • 1 (###) ###-####
  • 1##########
  • ##########
  • 1 ### ### ####
  • ### ### ####
  • 1.###.###.####
  • ###.###.####
  • +1.##########
Social Security Number:

###-##-####

converted formats:

  • ### ## ####
  • #########
Time:

example: 11:45am

converted formats:

  • 11:30 PM
  • 23:30
Duration:

HH:MM

converted formats:

  • 123 (converts to 2:03)
  • 23:30
URL:

example: http://www.websanity.com/

ZIP Code:

##### or #####-####

Credit Card:

examples:

US Dollar Amount:

###.##

converted formats:

  • ###
  • .##
  • #.#
  • #.
  • $###.##
  • $###
  • $.##
  • $#.#
  • $#.

Needs correct answer.

Submit This Form
<input type="text" fs_type="alphanum" />
<input type="text" fs_type="cvv" />
<input type="text" fs_type="date" />
<input type="text" fs_type="email" />
<input type="text" fs_type="email_list" />
<textarea rows="5" cols="60" fs_type="email_list"></textarea">
<input type="text" fs_type="identifier" />
<input type="text" fs_type="ipv4" />
<input type="text" fs_type="alpha" />
<input type="text" fs_type="name" />
<textarea rows="5" cols="60" fs_type="no_html"></textarea">
<input type="text" fs_type="number" />
<input type="text" fs_type="nonnegative_number" />
<input type="text" fs_type="positive_number" />
<input type="text" fs_type="integer" />
<input type="text" fs_type="nonnegative_integer" />
<input type="text" fs_type="positive_integer" />
<input type="text" fs_type="password" />
<input type="text" fs_pattern="^[a-zA-Z]\d{5,9}$|^\d{9}$" />
<input type="text" fs_pattern="^[aAbBcCeEgGhHvV]\d{3,8}$" />
<input type="text" fs_pattern="^\d{7}[xX]?$" />
<input type="text" fs_pattern="^[a-zA-z]\d[a-zA-z\d]\d{2}[a-zA-z]{3}\d$|^\d{9}$|^\d{13}$" />
<input type="text" fs_type="phone" />
<input type="text" fs_type="ssn" />
<input type="text" fs_type="time" />
<input type="text" fs_type="duration" />
<input type="text" fs_type="url" />
<input type="text" fs_type="zipcode" />
<input type="text" fs_type="credit_card:Visa|MasterCard|Amex|Discover" />
<input type="text" fs_type="us_dollar" />
<input type="text" fs_type="xxx" />