Enable unobtrusive clientside validation in custom module

Topics: Writing modules
Jul 17, 2012 at 4:04 PM

Can you point me in the direction of some documentation or guides on how to enable unobtrusive client side input validation on a custom content part? I have the DataAnnotation Attributes on my model, so  server side validation performs successfully, but I would like the new HTML 5 data-val attributes to be used as well. Is this possible? (preferably without a hack)

I'm using Orchard version 1.4.2

Thanks

Jul 19, 2012 at 9:39 AM

Anyone?

Coordinator
Jul 23, 2012 at 12:19 PM

I suppose if you're not getting an answer it's that nobody has done it so far. Please share your findings if you figure out how to do it.

Jul 23, 2012 at 8:02 PM

I have not found a way that doesn't include hacking apart the Orchard source. I ended up just including the jquery scripts and adding the data-attributes manually. So the DataAnnotation classes is only used for server side validation.