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

haggins’s picture

Title: #limit_validation_errors ignored » Respect #limit_validation_errors
Category: bug » feature

Well, 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.

Jelle_S’s picture

See #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.