"field_with_errors" divs corrupts layout of "collection_check_boxes"

If a user don’t check anything in a obligatory collection_check_boxes field, every input of collection_check_boxes gets surrounded by a <div class="field_with_errors"> which corrupts the layout of the checkboxes. When no error occurs, the checkboxes are displayed in one line, if an error occurs, all checkboxes are displayed one below the other. This looks incorrect.

This is part of the field_error_proc configuration. If that markup is causing you a problem you can either adjust your styles to account for it or provide your own proc with the markup you want.

1 Like