From c227f3f5f4f2295ea24b8bb1857e6c604a5bbec8 Mon Sep 17 00:00:00 2001 From: Becky Gilbert Date: Mon, 1 Apr 2024 16:35:59 -0700 Subject: [PATCH] add validation for child birthdate: cannot be a future date --- packages/surveys/src/survey.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/surveys/src/survey.json b/packages/surveys/src/survey.json index 1d25e532..ea87f289 100644 --- a/packages/surveys/src/survey.json +++ b/packages/surveys/src/survey.json @@ -6,6 +6,7 @@ "description": "We ask again just to check for typos during registration or accidental selection of a different child at the start of the study.", "inputType": "date", "isRequired": true, + "maxValueExpression": "today()", "name": "birthDate", "title": "Please confirm your child's birthdate.", "type": "text"