cds-snc / cds-snc/platform-forms-client
Improve "Date" field validation
- Dominant language
- TypeScript
- Stars
- 46
- Forks
- 16
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 91
Description
## Description
More options to restrict the date element e.g. no dates in the future and no earlier than two years from the date of filling out the form
-- Only future dates
-- Only past dates
**Observation from client in the API file attachment Beta cohort:**
Your form date field does not limit month and year to only 2 digits.
It validates correctly, but it does not prevent long numbers. …
It also does not allow for leading zeros, which is fine, but feels a bit unnatural for dates.
https://cds-snc.freshdesk.com/a/tickets/25540
https://cds-snc.freshdesk.com/a/tickets/30000
> Si nous avons des questions avec des dates, mais nous voulons que celle-ci ne soit pas dans le passé, est-ce que nous avons l’option qu’il y ait une erreur qui s’affiche lorsque le client veut continuer le questionnaire pour qu’il puisse changer la date?
Contributor guide
Assessment
This issue has not been assessed yet.