Hi!
Currently module does nothing if field is not filled but field marked as required (no message, no field highlighting).

Comments

leksat’s picture

StatusFileSize
new648 bytes

Attached patch fixes the bug.

leksat’s picture

Title: Module doesn't respect "required" setting » Validation issues
Status: Active » Needs review
StatusFileSize
new6.77 KB

I found another validation errors and fix them:
1. Removed double field validation via #element_validate and hook_field_validate().
2. Removed validation of generic things like maxlength of select option, because Drupal do this job as well.
3. $errors variable is used instead of form_set_error().

Please review the patch.