Data Validation

The dataValidation component validates such data as phone numbers, zip codes, alphabetic and alphanumeric data, and so on. Use this component on sites with forms that need valid data before processing the fields, such as mail order forms or registration forms.

Properties

name

DisplayName - Name
Description - (REQUIRED) Unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page.
DefaultValue - dataValidationComponent1


Methods

boolean IsAlpha( str)

Function:IsAlpha
Input:String
Return:Boolean
Description:This method will return true if the given string contains characters that all are a-z and/or A-Z.


boolean IsAlphaNum( str )

Function:IsAlphaNum
Input:String
Return:Boolean
Description:This method will return true if the given string contains alpha characters(a-z and A-Z) and numeric (0-9).


boolean IsAlphaNumOrUnderScore( str )

Function:IsAlphaNumOrUnderScore
Input:String
Return:Boolean
Description:This method will return true if the given string contains alpha characters (a-z and A-Z), numeric (0-9) and underscores.


boolean IsBlank( str )

Function:IsBlank
Input:String
Return:Boolean
Description:This method will return true if the given string is blank


boolean IsInt( numstr, allowNegatives )

Function:IsInt
Input:String to test, Boolean to test for negatives
Return:Boolean
Description:This method will return true if the given still validates to be a integer (positive or negative)


boolean IsNull( val )

Function:IsNull
Input:String
Return:Boolean
Description:This method will return true if the given string validates to be null.


boolean IsUndef( numstr )

Function:IsUndef
Input:String
Return:Boolean
Description:This method returns true if the given string validates to be undefined.


boolean IsValid5DigitZip( str )

Function:IsValid5DigitZip
Input:String
Return:Boolean
Description:This method returns true if the given string works out to be a valid zipcode


boolean IsValid5Plus4DigitZip( str )

Function:IsValid5Plus4DigitZip
Input:String
Return:Boolean
Description:This method returns true if the given string works out to be a valid zipcode with the 4 number extension.


boolean IsValidEmail( str )

Function:IsValidEmail
Input:String
Return:Boolean
Description:Thid method returns true if the given string works out to be a valid email address


boolean IsValidPhone( str, incAreaCode )

Function:IsValidPhone
Input:String to test, Boolean to test for Area Code
Return:Boolean
Description:This method returns true if the given string works out to be a valid phone number w/ or w/o the area code


boolean IsValidSSN( str, incDashes )

Function:IsValidSSN
Input:String to test, Boolean to test for Dashes
Return:Boolean
Description: This method returns true if the given string works out to be a valid SSN w/ or w/o separating dashes.


Events

None

Other Information

Environment: Client