Hi, I’m new to silverstripe, and I’m trying to evaluate if I want to use silverstripe for my next projects.
I love it so far but I’m running into a problem with the DataObject validation. I have to build a lot of DataObjects (and building them so far is great and fast) but I need a way to validate everything that the customer is going to input. So far I have found that you can use the getCMSValidator to set the required fields but that is it.
I have seen some people extend the RequiredFields class I will have to do that of every time I build a new DataObject (I have about 25 of them).
Is there a way to validate dataobjects preferable client side with something similar to jQuery.Validate or if that is not an option something that is reusable? So you have a RequiredFields class and a UniqueFields class etc.
Thanks