Why is a customValidator Hacky? A vaildator validates values, works fine by me :) I've used those to validate some custom properties as well on a doctype and then you get the nice Umbraco Error messages, maybe you get the same using a custom validator on a custom DataType.
Anyway I find it less hacky than your other option
Suppress "Datatype saved" popup
Is it possible to suppress the datatype saved popup when saving a custom datatype?
I do a check for valid values and nothing is saved if the form doesn't contain valid values.
But the popup is still shown.
Or is there a BeforeSave event that I can hook into?
I could also use a CustomValidator, but that seems a little "hacky".
Why is a customValidator Hacky? A vaildator validates values, works fine by me :) I've used those to validate some custom properties as well on a doctype and then you get the nice Umbraco Error messages, maybe you get the same using a custom validator on a custom DataType.
Anyway I find it less hacky than your other option
Just my 2cts
Cheers,
Richard
Yeah. You are probably correct. I just don't like to scrap and redo code that works, just not perfectly :-)
is working on a reply...