I am using Sitecore 9.0.2 with SXA 1.8.0.
I extended the Required Field validator with
Result=CriticalError
the Result=CriticalError
parameter, so the authors can see an alert each time they edit a page in Experience editor with components that did not pass the field validation.
I would like to hide components with field validation issues in the preview mode and on CD, is there an easy way to do this?
Some of my components are OOTB SXA components and some of them are partially/fully custom so there needs to be a way to make the solution work for all of them.