Displaying error message when a search produces no results

Hi everyone!

Our nonprofit has a quick (I think) question about displaying search results. How can we cause a suitable message (such as “Sorry, we did not find any results for your search” to appear if their search does not produce any results? Currently, they just see a blank page.

Thank you very much for your time and assistance. We truly appreciate it!

You can implement a few bits of conditional logic based around zero counts (ie. when the search has 0 results, then a group is visible or a popup is shown).

I have a lesson on zero count logic here if you’d like to take a look.

Dan (creator of LearnTo)

1 Like

Thanks, dan1! We really appreciate your help. Please pat yourself on the back for helping a nonprofit (http://ChangingThePresent.org). You are so nice!

1 Like