This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Prohibit searching with empty search term and taxonomies

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Prohibit searching with empty search term and taxonomies Reply To: Prohibit searching with empty search term and taxonomies

#45398
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

For the filters there are options to do that here: https://i.imgur.com/0iwGFOI.png

For the search input there is no such feature, however you can set the minimum character count to trigger from 0 to 1 or higher here: https://i.imgur.com/baosD8O.png
Unfortuantely that is not going to display a message. However with that the search is not triggering so you don’t need to abort. Then you could hook an event listener and check for the length with for example: jQuery('.asp_m input.orig').val().length