twitter/bootstrap — Issue #2156: forms and fields with error messages
Author: nkryptic
Created: 2012-02-22 03:10:39+00:00
State: open

This does have some overlap to issue #1939, but I'm targeting the overall use case for forms. It's fairly common to update a form with error messages using js or to display some error messages after an unsuccessful submission. Some errors might target a field, while other might be global in nature. See the following jsfiddle for examples:

http://jsfiddle.net/HFzQv/

The first form displayed has a form-level error message (not isolated to a certain field). One way to markup/style that would be for it to be an `.alert`, but I'm not certain if that is the correct usage and/or if you guys might have another approach in mind for this.

The second form shows a field in an error state with an error message for the field just before the field's `.help-block` providing general help on filling out the field. It seems like the error message for the field should stand out; as it is now, it seems lost along with the other text. Thoughts? (this is the part that is also addressed by #1939)