The rules block on the date component enforces a conditional max-future-date limit. The allowed date range is determined by the current value of a driver attribute on the same record. Each driver value maps to a limit expressed in years or days from today. If the driver attribute is empty or its value does not match any threshold, the fallback limit applies.
Key of the attribute on the same record whose value determines which threshold is active.
string
Yes
thresholds
Ordered list of value-to-limit mappings. At least one entry is required. Matched by exact comparison against the driver attribute value. See thresholds properties.
array
Yes
fallback
Limit applied when the driver attribute is empty or its value does not match any threshold. Shape: { limit, errorTranslationKey? }.
json
Yes
thresholds properties
Property
Description
Values
Mandatory
driverValue
The driver attribute value that activates this threshold. Exact match. Type follows the driver attribute (string, boolean, or integer).
string / boolean / integer
Yes
limit
The max-future-date limit when this threshold is active. See limit kinds.
json
Yes
errorTranslationKey
Translation key for the inline validation error shown when the date exceeds this limit. If omitted, a generic platform error is used.
string
No
limit kinds
kind
Shape
Description
days
{ "kind": "days", "value": <positive int> }
Date must be at most today + N days.
none
{ "kind": "none" }
No restriction — picker is open for any future date. When used as the fallback limit, no validation error is ever generated.
years
{ "kind": "years", "value": <positive int> }
Date must be at most today + N years.
Example
Behavior notes
The active limit recalculates in real time when the driver attribute changes within the same form session.
If changing the driver attribute causes an already-set date to exceed the new limit, saving is blocked until the user corrects the date or reverts the driver.
Existing records with dates beyond a newly configured limit are not affected. The rule activates only when the user next edits either the date or the driver attribute on that record.
Navigation
Popular topics
Start typing to search. ↑ ↓ to navigate, ↵ to open.
↑ ↓ navigate ↵ open Ctrl ↵ open in new tab
We use cookies
We use cookies to analyse our traffic and improve your experience. By clicking "Accept All", you allow us to use cookies for analytics via Google Tag Manager. You can also customise your preferences.
Customise Consent Preferences
We use cookies to analyse our traffic. You can choose which categories to allow. Privacy Policy
Necessary cookies allow core website functionality. The website cannot be used properly without these cookies.
Functionality cookies remember visitor preferences such as language and timezone.
Analytics cookies help us understand how visitors use the website. These cookies cannot directly identify a visitor.
Advertisement cookies are used to show relevant ads and measure ad campaign effectiveness.