News for hackers. Stuff that matters.
Re:HTML Form Validation is heavily underused by everdimension on Tuesday October 29, 2024 @09:45AM (#41983787)
That's totally true! Invalid states shouldn't be shown sooner than necessary

It's just that for the demos in the article it makes sense to show invalid states as soon as possible, but for a nicer UX in real apps you need to take into account "touched" and "submitted" states for the form and per input

For the demos I wanted the reader to know at a glance when our validation code takes effect and this obviously comes at a conflict with demoing a fully "real-world" behavior

There are no comments on this comment yet.