Forums › Forums › Search & Filter Pro › text search to clear the filters selected
- This topic has 4 replies, 3 voices, and was last updated 5 years, 6 months ago by
Ross.
-
Anonymous(Private) September 17, 2020 at 9:46 am #259870
Hi,
We would like to change the functionality of the text search box so that when something is entered into it, it essentially just searches for that text and clears the filters previously selected. I am using the “use a shortcode” method, with ajax on and taking me to a custom url. So i could see that when something is entered in the text search box it adds a parameter to the URL like so:-
https://www.mydomain.com/makers/?_sf_s=something
If other filters are selected you get other parameters in the url. So i thought i could intercept the form submission, check if something is entered in the text input field and then redirect to the search results page with only the “_sf_s” parameter set. Is it possible to do this and if so can you point me in the right direction please? I know how to intercept form submissions with jQuery or raw javascript if necessary and i want to do it in a way that updates to the plugin wont remove the override. Either that or is there a setting to change the behaviour of the text field?
Thanks in advance
Ross Moderator(Private) September 23, 2020 at 9:31 am #260443This reply has been marked as private.Ross Moderator(Private) September 23, 2020 at 9:32 am #260447This reply has been marked as private. -
AuthorPosts