Constraint and restrict date entries with a special date (if not known) or a range of known dates

@christian_silvera, you could use the following constraint as shown in the image below:

In the survey tab of your XLSForm:

Data entry screen as seen in Enketo: accepting 1900-01-01 when a date is unknown

Image 2

Data entry screen as seen in Enketo: rejecting a date that is above 1900-01-01 and below 2021-01-01

Data entry screen as seen in Enketo: accepting a date that is 2021-01-01 and above

Image 3

Data entry screen as seen in Enketo: accepting a date that is below or equal to today’s date

Image 4

Data entry screen as seen in Enketo: rejecting a date that is above today’s date

Reference XLSForm:

Date Constraint.xls (38 KB)