Skip to main content
edited tags
Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117
deleted 5 characters in body; edited title
Source Link
Richard Seal
  • 20.8k
  • 5
  • 44
  • 79

Hiding SXA Hide components in preview mode when there are field validation errors

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.

Hiding SXA components in preview mode when there are field validation errors

I am using Sitecore 9.0.2 with SXA 1.8.0.

I extended the Required Field validator with

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.

Hide components in preview mode when there are field validation errors

I am using Sitecore 9.0.2 with SXA 1.8.0.

I extended the Required Field validator with 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.

Source Link

Hiding SXA components in preview mode when there are field validation errors

I am using Sitecore 9.0.2 with SXA 1.8.0.

I extended the Required Field validator with

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.