- Getting Started
- General Options
- Loggers
- Debuggers
- AjaxHandler
- PreProcessors
- Interceptors
- Validators
- Generators
- Finisher
- Session
- Error Checks
- Templates
- Subparts
- ###TEMPLATE_FORM[1...x]###
- ###TEMPLATE_FORM[1...x][SUFFIX]###
- ###FORM_STARTBLOCK###
- ###FORM_ENDBLOCK###
- ###TEMPLATE_EMAIL_ADMIN_PLAIN###
- ###TEMPLATE_EMAIL_ADMIN_HTML###
- ###TEMPLATE_EMAIL_USER_PLAIN###
- ###TEMPLATE_EMAIL_USER_HTML###
- ###TEMPLATE_SUBMITTEDOK###
- ###TEMPLATE_ANTISPAM###
- ###TEMPLATE_PDF###
- ###ISSET_[FIELDNAME]###
- ###HAS_TRANSLATION_[KEY]###
- ###IF_[FIELDNAME]=[value]###
- Subpart Markers
- ###value_[fieldname]###
- ###LLL:[langkey]###
- ###error_[fieldname]###
- ###is_error_[fieldname]###
- ###is_error###
- ###is_success_[fieldname]###
- ###validate_[fieldname]###
- ###REL_URL###
- ###ABS_URL###
- ###submit_nextStep###
- ###submit_nextStep_[suffix]###
- ###submit_prevStep###
- ###submit_prevStep_[suffix]###
- ###submit_reload###
- ###submit_step_[stepnumber]###
- ###FEUSER_[property]###
- ###required_[fieldname]###
- ###requiredMarker_[fieldname]###
- ###CAPTCHA###
- ###RECAPTCHA###
- ###MATHGUARD###
- ###ERROR###
- ###[fieldname]_minSize###
- ###[fieldname]_maxSize###
- ###[fieldname]_maxTotalSize###
- ###[fieldname]_currentTotalSize###
- ###[fieldname]_remainingTotalSize###
- ###[fieldname]_allowedTypes###
- ###[fieldname]_maxCount###
- ###[fieldname]_fileCount###
- ###[fieldname]_remainingCount###
- ###[fieldname]_uploadedFiles###
- ###total_uploadedFiles###
- ###selected_[fieldname]_[fieldvalue]###
- ###checked_[fieldname]_[fieldvalue]###
- ###curStep###
- ###maxStep###
- ###lastStep###
- ###step_bar###
- ###formValuesPrefix###
- ###formID###
- ###[action]_LINK###
- ###TIMESTAMP###
- ###auth_code###
- ###value_authCodeUrl###
- ###field_[masterkey]_[fieldname]###
- ###HIDDEN_FIELDS###
- ###validation-status###
- ###embed_[key]###
- Subparts
- Backend Module
Date & Time
Using these error checks you can force the user to enter a valid date or time. You can even check for a valid date range.
Version added
1.0.0
Example code
validators { 1.class = Validator\DefaultValidator 1.config { fieldConf { birthdate.errorCheck { 1 = dateRange 1 { min = 1.1.1950 max = 24.10.1995 pattern = d.m.y } } } } }
date
Checks if a field value is a valid date
time
Checks if a field value is a valid time
dateRange
Checks if a field value is between a configured date range
isOlderThan
Checks if a person is older than the specified number of years by parsing a given date.
isYoungerThan
Checks if a person is younger than the specified number of years by parsing a given date.