If a required form-element (textfield) is submitted empty, error message is displayed, but the class "error" is not added to the input as it is with required form-item.

| Comment | File | Size | Author |
|---|---|---|---|
| #2 | error.jpg | 64.3 KB | Anonymous (not verified) |
| validation.jpg | 75.61 KB | wildfeed |
Comments
Comment #0.0
wildfeed commentedadded screenshot
Comment #1
franzI take it is not a usual textfield, is it? How can we reproduce?
Comment #2
Anonymous (not verified) commentedI'm having a similar problem on a field with custom validation. I'm building a multi-step form with these interdependent elements:
… and this custom validation:
If I select 'Yes' (value = '2') and submit without altering the default text in the next field, I get the custom error message ('You said you have a website, but you didn’t tell us the address'), but the error class is not added to the element. Same thing with an empty textfield; error message displayed, as expected, but no error class added to field.
Note: I had to encode the 'h' in http ('&104;ttp') for the title strings to post my code here without links being inserted by the comment system.
Comment #3
franz'submitted][url' is not the right argument here, 'url' is. Please read the docs on form_set_error()
Anyways, not sure if it's the same issue as original.
Comment #4
dddave commentedClosing old, stale issues. Re-open if your problem persists.
Comment #4.0
dddave commentededited