Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Another issue for latest dev:
Setting
'#limit_validation_errors' => array() at an ajaxified element let's the form unvalidated. In latest dev this property is ignored.
Comments
Comment #1
haggins CreditAttribution: haggins commentedWell, I just realized there isn't any clientside validation at ajaxified elements in the current release (1.37). This is a (great) feature introduced in dev by
Drupal.behaviors.ZZZClientsideValidation
which is actually not working correctly (see #2035761).So I change this into a feature request: please don't introduce CV on ajaxified elements without respecting #limit_validation_errors.
This property gets especially used on "add more" buttons. If you don't respect it you get errors all over the form if you don't fill out the whole form before clicking an "add more" button.
Comment #2
Jelle_SSee #2056219: General problem with drupal AJAX requests prevented by clientside validation. A partial fix for this was added. I'm not sure if it's feasible to only check those fields when the array is not empty.