I've seen many registration forms where if fields don't pass validation, the password fields are blanked as well.
Why is this the case? I understand why you'd blank the password in a login form, but I'm only referring to registration forms.
Answer
If the form was rejected by Server-Side validation, the password should be blanked out since it shouldn't be sent back to the client.
This problem is easily solved with inline validation though, you simply shouldn't be able to submit a form until it won't be rejected, and then no form data will be lost.
Passwords should only be lost in the rare situation that inline validation fails to match server-side validation, or if Javascript is disabled on the client, which you can't really design around.
No comments:
Post a Comment