1 |
validate |
The type of validation you want to perform. |
notEmpty
itemType
equal
regex
charLength
numberSize
dateOrder
totalChecked
|
validate: 'itemType' |
2 |
triggeringEvent |
The JavaScript event that will cause the validation to fire. |
blur
focusout
change
keyup
|
triggeringEvent: 'keyup' |
3 |
condition |
Optionally specify a JavaScript expression to support conditional execution of your validation. The validation will fire when the expression evaluates to true. |
|
condition: '$('#P5_COUNTRY').val() === "Belgium"' |
4 |
validationMinLength |
The amount of characters required before the validation is fired. |
|
validationMinLength: 3 |
5 |
errorMsg |
Specifying an error message overrides the default error message. Use &1, &2, &n for substitution values. |
|
errorMsg: 'invalid date (expected date format: &1)' |
6 |
errorMsgLocation |
Show the error message before or after the input item. |
after
before
|
errorMsgLocation: 'before' |
7 |
allowWhitespace |
Determine whether a string containing only whitespace characters is regarded as empty. |
true
false
|
allowWhitespace: false |
8 |
itemType |
Define what kind of item type validation should be applied. |
number
digit
alphanumeric
date
email
url
|
itemType: 'email' |
9 |
dateFormat |
Set the default application date format. Only applicable for date related validations. |
|
dateFormat: 'MM-DD-YYYY' |
10 |
min |
The minimum boundary based on a fixed value or jQuery selector. |
|
min: 5
min: '#P100_START_DATE'
|
11 |
max |
The maximum boundary based on a fixed value or jQuery selector. |
|
max: 10
max: '#P100_END_DATE'
|
12 |
equal |
Select the page item that you want the value to be equal to. Frequently used to validate that two password fields are equal. |
|
equal: '#P100_PASSWORD' |
13 |
regex |
Specify a regular expression to which the entered value will be matched. |
|
regex: '^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$' |