Property | Possible values | Description |
required | 1 0 |
Field is required Field is optional |
regexp | "regex" "JSVAL_RX_EMAIL" "JSVAL_RX_TEL" "JSVAL_RX_ZIP" "JSVAL_RX_MONEY" "JSVAL_RX_CREDITCARD" "JSVAL_RX_POSTALZIP" "JSVAL_RX_PC" |
Free regular expresion (i.e. /^\w*$/) Check for correct email adress check for correct phone number check for correct zip code check for correct money amount check for correct credit card number check for correct postal zip code check for correct postal code |
minlength | numeric | defines the miniumum length of an input value |
maxlength | numeric | defines the maximum length of an input value |
minvalue | numeric, float | defines the miniumum value of an input field (must be numeric or float) |
maxvalue | numeric, float | defines the maximum value of an input field (must be numeric or float) |
err | string | user defined error message thats printed when field value is invalid |
realname | string | user defined field name, that is used for error messages. If not defined the field label will be used. |
equals | string | The name or id of a form field to which the value of this field must be equal. Usefull for password retype fields (see example 5) |
callback | string | The name of the callback function that is called for validating this form field (see Callback section below for details) |