Display Message When Repeater Search Returns No Results

Learn how to display a message for your website users when a search or dynamic filters acting on a repeater returns no results, using Corvid (a.k.a. Wix Code). 

​This example assumes you have already set up a repeater which can be dynamically filtered or searched in some way - if not, please see our code on filtering repeaters. The repeater in this example uses data from the #dbEmployee database and uses a text input field for keyword searches (#iptSearch) and a dropbox filtering department options (#iptDepartment1). Try the example below by searching for a name not listed in the table e.g. Sally, or by selecting a department not listed in the table e.g. Marketing.

#iptSearch
#iptDepartment1
arrow&v

First Name

Last Name

Department

Jane

Austen

Operations

Jenny

Cruz

Sales

Joy

Dunner

Sales

Josie

Fay

Finance

Jim

Fraser

Finance

Judith

Jane

Finance

Page Code

Please wait ...
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! All our code snippets come with full support to help you implement them on your own website - simply contact us for help.
  • Facebook Social Icon
© CorvidCodeBank