I have modified unobtrusive validation script to replace error messages with qtips.
To do so I have modified onError method in jquery.validate.unobtrusive.js.
This works great until I submit form and model fails to validate on server side (my view models implements IValidatableObject). When this occurs, the default spans with errors are displayed but onError is no longer invoked.
Furthermore, when a field that has an error is corrected, the error message no longer disappears immediately as it did before submit…
Does anyone know how to “re-enagage” unobtrusive validation after submit?
Check this article:
ASP.NET MVC: Displaying Client and Server Side Validation Using qTip Tooltips
I’ve used what’s described there and I got client & server (IValidatableObject) side errors displaying correctly.