How do *you* indicate required fields in a web form?
I'm sure that most web developers will at some point have created a form where some of the fields are required, or must validate to a regular expression (e.g. email or date field). These fields must be indicated to the user as being required. I wanted to begin a discussion on how this can be achieved.
I'll begin by explaining how I achieve this:
As an ASP.NET developer, I often use the validator controls that come as part of the framework.
They work by default like this: you specify the text that will be displayed next to each field. Often this is just a '*' symbol of red colour. When the page first loads, none of these '*'s are visible.
Secondly, the pro: if the browser has javacript enabled, then the form becomes visually dynamic - the user gets instant feedback from the edits they make to the form as the '*'s appear and disappear.
I'm very interested to hear your opinions on this. Required fields are such a common element of a website, I'm sure every developer has got an opinion on how they should be done.
Also, please post links to what you consider to be good, usable examples of forms with required fields.