Is After - smbc-digital/form-builder GitHub Wiki

This condition checks whether the questionId date answer is after the comparison date + comparison value (uses unit).

Unit can be set as day, month or year.

Comparison value can be negative.

Examples

Is after today

In the example below, assuming todays date is 28/08/2025, a testDate of 27/08/2025 or 28/08/2025 would return false. 29/08/2025 would return true.


 {
     "conditionType": "isAfter",
     "questionID": "testDate",
     "comparisonValue": "0",
     "comparisonDate": "today",
     "unit": "day"
}

Is NOT more than 5 days ago

In the example below, assuming todays date is 28/08/2025, a testDate of 22/08/2025 or 23/08/2025 would return false. 24/08/2025 would return true.


 {
     "conditionType": "isAfter",
     "questionID": "testDate",
     "comparisonValue": "-5",
     "comparisonDate": "today",
     "unit": "day"
}

Is after 01/09/2025

In the example below, using a static comparison date of 01/09/2025, a testDate of 27/08/2025 or 01/09/2025 would return false. 02/09/2025 would return true.


 {
     "conditionType": "isAfter",
     "questionID": "testDate",
     "comparisonValue": "0",
     "comparisonDate": "01/09/2025",
     "unit": "day"
}