Some might ask if a select field should ever show an error because something is always selected. The answer is yes for two reasons that I can think of:

1) If a selection conflicts with another piece of data on the form
2) If the select element has a default value of something like "-Please Choose-" which is not a valid choice

Patch attached. I found it weird that the select element doesn't have any class attribute but this patch does not address that issue.

CommentFileSizeAuthor
select_error.patch1.43 KBSteve Dondley
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Status: Needs review » Reviewed & tested by the community

simple but good and needed. vry unlikely to conflict w/ anything.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Agreed. Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)