• ng.Validate is not available in the Lite version

Object ng.Validate vs. 1.1.0 FULL ONLY

The ng.Validate object is a collection of functions with general validation functions

Properties

Function ng.Validate.any (val) vs. 1.1.0 FULL ONLY
This function returns ture regardless of the value. It can be used to validate optional fields.
Function ng.Validate.text (val, length) vs. 1.1.0 FULL ONLY
Checks if the value is text with a minimum length value.
Function ng.Validate.max_text (val, max_len) vs. 1.1.0 FULL ONLY
Checks if the value's length is less than a maximum length value.
Function ng.Validate.text_between (val, min, max) vs. 1.1.0 FULL ONLY
Checks if the value's length is between a minimum and maximum values.
Function ng.Validate.text_equal (val, length) vs. 1.1.0 FULL ONLY
Checks if the value's length is equal to the length value.
Function ng.Validate.number (val) vs. 1.1.0 FULL ONLY
Checks if the value is a number.
Function ng.Validate.integer (val) vs. 1.1.0 FULL ONLY
Checks if the value is an integer.
Function ng.Validate.between (val, min, max) vs. 1.1.0 FULL ONLY
Checks if the value is a number between a minimum and maximum value.
Function ng.Validate.greater_than (val, min) vs. 1.1.0 FULL ONLY
Checks if the value is a number greater than a minimum value.
Function ng.Validate.less_than (val, max) vs. 1.1.0 FULL ONLY
Checks if the value is a number less than the maximum value.
Function ng.Validate.regexp (val, regex) vs. 1.1.0 FULL ONLY
Checks the value against a regular expression.
Function ng.Validate.email (val) vs. 1.1.0 FULL ONLY
Checks the value is an email formatted string. This function does not check if the email is valid and exists. It only checks if the string is a valid email format.
Function ng.Validate.url (val) vs. 1.1.0 FULL ONLY
Checks the value is a url formatted string. This function does not check if the url is valid and exists. It only checks if the string is a valid url format.
Function ng.Validate.us_zip (val) vs. 1.1.0 FULL ONLY
Checks the value is a US zip code formatted string. This function does not check if the zip code is valid and exists. It only checks if the string is a valid US zip code format.
Function ng.Validate.canada_zip (val) vs. 1.1.0 FULL ONLY
Checks the value is a Canadian zip code formatted string. This function does not check if the zip code is valid and exists. It only checks if the string is a valid Canadian zip code format.
Function ng.Validate.us_phone (val) vs. 1.1.0 FULL ONLY
Checks the value is a US phone number formatted string. This function does not check if the phone number is valid and exists. It only checks if the string is a valid US phone number format.
Function ng.Validate.date (val, mn_date, mx_dt) vs. 1.1.0 FULL ONLY
Checks if the value is a date string.
Function ng.Validate.date_greater_than (val, mn_dt) vs. 1.1.0 FULL ONLY
Checks if the value is a date string greater than the minimum date.
Function ng.Validate.date_less_than (val, mx_dt) vs. 1.1.0 FULL ONLY
Checks if the value is a date string less than the maximum date.
Function ng.Validate.credit_card (val, type) vs. 1.1.0 FULL ONLY
Checks if the value is a valid credit card number. This function will make sure the digits length and the number sequence match the credit card type.
Function ng.Validate.cvv (val, type) vs. 1.1.0 FULL ONLY
Checks if the value is a valid credit card CVV code.