Open leekelleher opened 6 years ago
@mattbrailsford I've spent a few hours investigating how this would work, but I can't figure out how to trigger the validation on the submit event. Any ideas would be appreciated - no rush though.
Hi @leekelleher and @mattbrailsford - any progress on adding validation to inner content? Or any knowledge you have to share about how Umbraco's default editor validates the models? All the best!
@markadrake In all honestly, I wasn't able to figure out how to do it. I couldn't see where Umbraco was triggering the client-side validation - which I wanted to trigger when the overlay panel was closed (or the "Done" button was pressed).
At this point, I'm open to any suggestions! 😃
@leekelleher is it me or has something changed in Umbraco v7.12.3?
Just a quick test tonight. But above I set a textbox to required and it validated all by itself.
Looks like the media picker doesn't have client-side validation (it doesn't as a regular content node either this actually validates on the POST).
I could have sworn just days ago this didn't work.
Interesting! I'm pretty sure that this didn't work previously too.
I'm hoping to get chance to look at this again, at this weekend's CodeCabin!
In the meantime, I'm going to open up a discussion on the forums about adding client side validation to the media picker. But my first couple of tests looks like something's been released to run validation automatically. High five! haha
Let's explore if we can have cursory validation on mandatory fields within Inner Content.
This would only be for client-side validation - server-side would open a can-of-worms!