Is Before - smbc-digital/form-builder GitHub Wiki
This condition checks whether the questionId date answer is before the comparison date + comparison value (uses unit).
Unit can be set as day, month or year.
Comparison value can be negative.
Examples
Is before today
In the example below, assuming todays date is 28/08/2025, a testDate of 27/08/2025 would return true. 28/08/2025 or 29/08/2025 would return false.
{
"conditionType": "isBefore",
"questionID": "testDate",
"comparisonValue": "0",
"comparisonDate": "today",
"unit": "day"
}
Is more than 5 days ago
In the example below, assuming todays date is 28/08/2025, a testDate of 22/08/2025 would return true. 23/08/2025 or 24/08/2025 would return false.
{
"conditionType": "isBefore",
"questionID": "testDate",
"comparisonValue": "-5",
"comparisonDate": "today",
"unit": "day"
}
Is before 01/09/2025
In the example below, using a static comparison date of 01/09/2025, a testDate of 27/08/2025 would return true. 01/09/2025 or 02/09/2025 would return false.
{
"conditionType": "isBefore",
"questionID": "testDate",
"comparisonValue": "0",
"comparisonDate": "01/09/2025",
"unit": "day"
}