Do you help the user to enter a URL field?

Last updated by TiagoAraujo over 9 years ago.See history

Most developers seem to validate a URL and tell the user what they have done wrong only after the error happens. URL fields should show how the users must enter it.

url field bad
Figure: Bad example - Using a validation message to tell the user to enter a correct URL

The better way is to have the user avoid the error with a good default.

url field bad2
Figure: Bad example - The user has a good chance of entering the URL in the incorrect format

url field good
Figure: Good example - User immediately knows the format expected

We open source. Powered by GitHub