Kauri Documentation
 PreviousHomeNext 
10.3.2 Custom ValidatorsBook Index10.4.1 Form configuration object

10.4 Forms Reference

Control types

Field types

Formatters

Validators

Name
autocomplete-control
case-control
collection-control
common for all controls
composite-control
date-range-control
datetime-control
dblselect-control
gmap-control
input-control
output-control
radioselection-control
selection-control
slider-control
textarea-control
upload-control
Name
boolean
case
collection
composite
date-range
datetime
decimal
file
integer
integer-range
location
string
time
Name
numeric
numeric-range
pattern
pattern-date
pattern-date-range
short-date
short-date-range
time
true-false
wire-date
wire-date-range
wire-date-time
Name
dateRange
dateRangeOrder
dayOfWeek
fieldComparer
isDate
isEmail
isInt
isIntRange
isOption
isUrl
length
range
regex
remote
required

Validators

Error messages

All validators have the possibility to customize their error message.
For example if you add the required validator and you want to set the error message "This field is absolutely required!".

"+validators" : 
{
   "required" : {"message" : 'This field is absolutely required!'}
}

Note: for some validators it is also possible to use some {0}, {1} arguments to show a configured value of the control.

 PreviousHomeNext 
10.3.2 Custom Validators10.4.1 Form configuration object