that is expecting the same format as the placeholder.
From a user perspective it could be confusing as when entering a date conforming to the placeholder, the "live feedback" will indicate an incorrect input, still the form will be validated when clicking on the generate button.
The validation pattern of the form for "live feedback" is not conforming to the format of the placeholder:
This pattern is expecting something of the format: 20/03/2021:
that is not working because, the pattern does not support year > 2020
Note: A pull request fixing this issue has already been proposed: #9
Still, there is another issue as when the form is submitted, the field is validated with following pattern: https://github.com/LAB-MI/attestation-deplacement-derogatoire-covid-19/blob/1fc8aedb67b28759b039cb7ae045d92c87971dbb/src/js/form-util.js#L34-L36
that is expecting the same format as the placeholder.
From a user perspective it could be confusing as when entering a date conforming to the placeholder, the "live feedback" will indicate an incorrect input, still the form will be validated when clicking on the generate button.
Originally posted by @ghiss75 in https://github.com/LAB-MI/attestation-deplacement-derogatoire-covid-19/issues/2#issuecomment-803293791