Tracker Field Validation | |
To use this functionality edit your tracker field type and got to the Validation section.
|
Regex Expression (pattern) | |
You can use a regex Expression to compare the entered value and the expected string. |
Samples | |
Validate email addressFor parameters you can enter the following (without start and end backslash) Copy to clipboard
|
jQuery Ajax validation | |
It works perfectly with fields that take text input but is not really suited or relevant to fields that have pre-configured selections, etc. (drop downs). The Validation feature, under jQuery plugins and add-ons settings in the Features → Interface panel has to be enabled for this to work. When editing or adding a tracker field while configuring a tracker, you can choose a validation option:
Regardless of which validation method is selected, you can specify a default custom error message if desired, in "Validation error message:"
|
Adding new custom validation procedures | |
Developers can add new custom validation procedures in lib/validators. Each validator must be stored in a php file named "validator_nameofvalidator.php" and there must be a main function in the file with the general structure as follows: Copy to clipboard
Copy to clipboard
|
Adding custom per-page validation | |
Example validation for a field of type "ins_fill" (Multiple Fill Fields available) which should start with a number: Copy to clipboard
|