|
|
|
|
|
by kokanee
1138 days ago
|
|
There are two things that engineers tend to neglect about validation experiences: 1) When you run the validation has a huge impact on UX. A field should not be marked as invalid until a blur event, and after that it should be revalidated on every keystroke. It drives people crazy when we show them a red input with an error message simply because they haven't finished typing their email address yet, or when we continue to show the error after the problem has been fixed because they haven't resubmitted the form yet. 2) Client side validation rules do occasionally diverge from server side validation rules. Requiring a phone number can be A/B tested, for example. |
|