Field validation
Validation is a method of ensuring content input into various field types is within an allowed range or is a valid entry.
Restrictions can be set on some field types, usually in the form of an allowed range (i.e. minimum and/or maximum values). This is done at the template level. Examples include:
- Text fields - minimum and/or maximum character or word count
- Numeric fields - minimum and/or maximum values
- Datepicker - minimum and/or maximum date periods
If a field requires validation, it will generally display an info panel on the field that specifies the allowed range.
A field may also simply detect whether the input value is valid or not. An invalid value might contain unsupported characters or syntax. If a field entry fails validation, it will display a red error panel on the field that outlines what the restriction or error is.