after
| Category | Date |
| Related | after_or_equal · before · before_or_equal |
| Bundle size | 415 B |
Validates that the date is after a given date or another element's date. Requires the Date module to be installed.
Usage
vue
<VfText name="start_date" label="Start date" rules="after:today" />
<VfText name="end_date" label="End date" rules="after:start_date" />vue
<template>
<VfText name="start_date" label="Start date" rules="after:today" />
<VfText name="end_date" label="End date" rules="after:start_date" />
</template>ts
{
start_date: {
type: 'text',
label: 'Start date',
rules: 'after:today',
},
end_date: {
type: 'text',
label: 'End date',
rules: 'after:start_date',
},
}Parameters
| Parameter | Description |
|---|---|
date | A date string, the keywords today, tomorrow, yesterday, or another element's path — see Referencing Other Elements. |
Error Messages
| Key | Default Message |
|---|---|
rule_after_error | The {attribute} must be a date after {date}. |