yiisoft/yii2 — pull request #6361 by Alex-Code (2014-12-03 17:25:11+00:00)
Title: ActiveForm forceValidate event on attributes

Allow attributes to have their validation triggered by a custom event `forceValidate.yiiActiveForm`.
`validateAttribute` is called with `forceValidate` set to true.

Use case;
I have a dropdown of parent pages with an input field where users can enter a url.
The url field has a rule to check for uniqueness (using ajax) against the currently selected parent.
If the user changes the parent page I need to check if the url is still unique but as it's value hasn't changed you can't use any of the existing events.