For the complete documentation index, see llms.txt. This page is also available as Markdown.

Suppression of blank search queries

Prevent empty search requests and guide users to enter a valid search term before submitting.

Many visitors click the Search button without entering anything in the search field. Instead of sending a blank query, show a short message that asks the visitor to enter a search term. For example, you can display an info message and move focus back to the search box. This prevents blank queries, avoids accidental searches with a default term, and makes the experience smoother for users.

Last updated

Was this helpful?