Hacker News new | ask | show | jobs
by DoneWithAllThat 39 days ago
The whole pattern of considering an input field being blank or having an invalid value while still focused causing an error indicator of any kind to appear is surprisingly infuriating to me.

Like it’s actively frustrating to focus a field like a phone number entry and already the field is red and says something like “must be a valid phone number”. Yes I know that! I’m trying to enter one! Stop drawing my attention to useless information!

Displaying some kind of error if I focus away and the input is invalid or blank is marginally better (and I can see how in some cases might be a better choice, even), and displaying an error “on submit” (for some definition of submit) seems utterly reasonable. But before the user even has a chance to enter a valid value is just a good way to piss them off.

1 comments

Well, if we’re venting: I want to scream at UIs that to validation on fixed-length fields when you type — not paste, type — the last character.

Start to type a phone number. Press the first digit. Get a popup: “please enter a valid phone number”. Dismiss is. Type the second digit. Repeat the dialog. Get frustrated and type the number into a different window, copy it, and paste it into the phone number field. The field is still marked invalid. Press backspace. Get the invalid number popup. Type the digit. Voila, the UI updates to congratulate you for being smart enough to type an entire phone number.

Those UIs were written by someone who’s never actually used a computer.