Canada-specific Form helpers
Canadian phone number form field.
Canadian postal code form field.
Validates against known invalid characters: D, F, I, O, Q, U Additionally the first character cannot be Z or W. For more info see: http://www.canadapost.ca/tools/pg/manual/PGaddress-e.asp#1402170
A form field that validates its input is a Canadian province name or abbreviation. It normalizes the input to the standard two-leter postal service abbreviation for the given province.
A Select widget that uses a list of Canadian provinces and territories as its choices.
A Canadian Social Insurance Number (SIN).
Checks the following rules to determine whether the number is valid:
Conforms to the XXX-XXX-XXX format.
Checks to make sure that the SIN passes a luhn mod-10 checksum See: http://en.wikipedia.org/wiki/Luhn_algorithm
An alphabetical list of provinces and territories for use as choices in a formfield. Source: http://www.canada.gc.ca/othergov/prov_e.html
a mapping of province misspellings/abbreviations to normalized abbreviations