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
September 15, 2023 at 4:08 pm
#45398
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