Do note that their new guidelines at https://design-system.service.gov.uk/patterns/dates/#asking-... suggest using `type="text" inputmode="numeric"` instead of `type="number"`.
Asking for a date of birth (2013)
31–40 of 97 posts
Re: Asking for a date of birth (2013)
#32It's 2022 and input=date should be used instead for date pickers on the Web. https://github.com/alphagov/govuk-design-system-backlog/issu...
I want to be able to do things like
so you're stuck with not great UX if the platform-specific picker sucks for your use-case which for this is absolutely does. If you're born in 1950 on iOS have fun spinning the year wheel for a while instead of just typing in the number.Re: Asking for a date of birth (2013)
#33It's 2022 and input=date should be used instead for date pickers on the Web. https://github.com/alphagov/govuk-design-system-backlog/issu...
The interface looks usually nice, but input=date is horrible to manipulate in many implementations. On iOS choosing year/month is the rolodex interface, as slow and clunky as usual, especially if you’re flipping it for 40~60 years. On android it moves month by month at most, so it’s even funnier to swipe for decades. I think the type=number alternative with validation + confirmation text with the month in letters is…
Re: Asking for a date of birth (2013)
#34It's 2022 and input=date should be used instead for date pickers on the Web. https://github.com/alphagov/govuk-design-system-backlog/issu...
That's why so many people roll their own.
Re: Asking for a date of birth (2013)
#35One thing I always felt was an anti-pattern was in any input where months are numbers they don't explicitly mention in an adjacent label the name of the month. Besides the US/UK order confusion, you'd be surprised how often people think August is the 7th month of the year.
There's an unspoken privilege in being born on a day beyond the 12th of any given month, because you'll get a validation error if you mix up the day and month in a form
Re: Asking for a date of birth (2013)
#36Earlier quoted context omitted.
There's an unspoken privilege in being born on a day beyond the 12th of any given month, because you'll get a validation error if you mix up the day and month in a form
Even better, just have the same value for each
Re: Asking for a date of birth (2013)
#37Re: Asking for a date of birth (2013)
#38Relying on input=date would probably abstract that away at the client side, but as people said, browser support for it still seems to be bad.
Re: Asking for a date of birth (2013)
#39One thing I always felt was an anti-pattern was in any input where months are numbers they don't explicitly mention in an adjacent label the name of the month. Besides the US/UK order confusion, you'd be surprised how often people think August is the 7th month of the year.
Re: Asking for a date of birth (2013)
#40Usually the best solution is not to ask for date of birth. I guess about one in ten of websites that ask me that actually have a legitimate reason for needing to know. (In the present case, a UK Government website might well have a legitimate reason.)
Well Zoom locked him out for some time for trying to lie I guess and that meeting had to be moved to Teams.