Date constraints

Hi everybody,
I am building a survey in which the applicant has to indicate the date of project participation. I want to set eligibility criteria where applicants can only fill in any date between January 1, 2020, and December 31, 2021. Would you please, help me with this?
Thank you very much.

Hi @Yusuf and welcome to the community!

You need to set a validation criteria you can read more info about how to do that in this wonderful article: Limiting Responses with Validation Criteria — KoboToolbox documentation

This should work as a criteria:
. > date(“2020-01-01”) and . < date(“2021-12-31”)

1 Like

Hi Hakan,
Thank you very much. It worked.