Yii form not validating
In this recipe we'll implement which supports for validating multiple attributes at once.
By default if multiple attributes are used for validation, the loop will be used to apply the same validation to each of them.
This cookie stores just a session ID; no other information is captured.
Accepting the NEJM cookie is necessary to use the website.
I haven't looked too deeply into the inner workings of Active Form and Active Field but it would seem that perhaps the magic might happen by Active Form handling bubbled events raised on the fields (blur and change) and then using the array of attribute validation objects attached to a data element in the form to handle the event.
@samdark will you please provide me a simple example so that i can use it properly . @gauravparashar12 and whoever else is looking for reason why and a simple solution for ajax added fields not triggering validation.
Which creating custom validator is well covered in the official guide, there are cases when you need to validate multiple attributes at once.