dojox/validate/ca (version 1.10)

Summary

Module which includes Canadian-specific methods for dojox.validate

See the dojox/validate/ca reference documentation for more information.

Method Summary

  • isPhoneNumber(value) Validates Canadian 10-digit phone number for several common formats
  • isPostalCode(value) Validates Canadian 6 digit postal code
  • isProvince(value) Validates Canadian province abbreviations (2 characters)
  • isSocialInsuranceNumber(value) Validates Canadian 9 digit social insurance number for several common formats

Methods

isPhoneNumber(value)
Defined by dojox/validate/ca

Validates Canadian 10-digit phone number for several common formats

Parameter Type Description
value String
Returns:undefined
isPostalCode(value)
Defined by dojox/validate/ca

Validates Canadian 6 digit postal code

Validates Canadian 6 digit postal code. Canadian postal codes are in the format ANA NAN, where A is a letter and N is a digit, with a space separating the third and fourth characters.

Parameter Type Description
value undefined
Returns:undefined
isProvince(value)
Defined by dojox/validate/ca

Validates Canadian province abbreviations (2 characters)

Parameter Type Description
value String[2]
Returns:undefined
isSocialInsuranceNumber(value)
Defined by dojox/validate/ca

Validates Canadian 9 digit social insurance number for several common formats

Validates Canadian 9 digit social insurance number for several common formats. This routine only pattern matches and does not use the Luhn Algorithm to validate number.

Parameter Type Description
value String
Returns:undefined
Error in the documentation? Can’t find what you are looking for? Let us know!