Abhoryo / APYJsFormValidationBundle

This bundle performs validations of a form in javascript. (i18n compatible and several javascript frameworks supported)
92 stars 23 forks source link

Move the removeErrors #35

Closed benji07 closed 11 years ago

benji07 commented 11 years ago

I move the removeErrors to handle multiple validator on a single field.

Before, each time you call the checkError your remove the errors from the fields.

Now, we remote the errors before the first check

Abhoryo commented 11 years ago

Maybe we can add an option to choose when errors are removed.

recipe commented 11 years ago

I think no need in extra option. We can check whether checkmode blur is enabled and remove an old error messages if does.

recipe commented 11 years ago

However considering that it is not a solution in the Benjamin's case, anyone can just override JsFormValidation.js.twig script placing it to the app/Resources/APYJsFormValidationBundle/views/Frameworks/JsFormValidation.js.#your_framework#.twig

benji07 commented 11 years ago

And after testing this again, it doesn't work as result = result && checkError don't call checkError if result is false