← Back to plugin index

Maximum Date

Description
Validates that a date has a upper limit (last possible date).
Type name
MaxDateValidation
Class
com.airlock.iam.flow.ui.application.configuration.configurable.validation.MaxDateValidationConfig
May be used by
Properties
Maximum Relative [days] (maxRelative)
Description

The "maximum relative value" is the upper limit (last possible) for allowed difference in days to the current date. This cannot be used together with "Max Date".

Examples: A value of 1 means that tomorrow is the latest possible date to enter, a value of -365 means that the entered date has to be at least one year in the past. Use this property to configure a minimal required age.

Attributes
Integer
Optional
Max Date (maxDate)
Description

The latest date allowed to be filled in. This cannot be used together with "Maximum Relative" and it must be in ISO 8601 format.

Attributes
String
Optional
Example
2011-12-03
Example
2018-02-06
Translation Key (translationKey)
Description
The translation key to use for the error message in case the validation fails. In the translation, the maximum date can be referred to using {{before}}. A default translation is used when no translation key is configured.
Attributes
String
Optional
YAML Template (with default values)

type: MaxDateValidation
id: MaxDateValidation-xxxxxx
displayName: 
comment: 
properties:
  maxDate:
  maxRelative:
  translationKey: