I'm using a SXA filter checklist with a SXA search results, I want to hide this filter when there is no data in the search results.

1 Answer 1


You could easily extend the search JS logic to do that. In one of your scripts, use results-loaded search event. When it will be triggered simply check number of results and in case there won't be any simply hide filter.

XA.component.search.vent.on("results-loaded", function (results) {
    //you custom logic here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.