Forums › Forums › Search & Filter Pro › Clear search when a new drop down item is selected
Tagged: dropdown, search reset
- This topic has 3 replies, 2 voices, and was last updated 8 years, 5 months ago by
Trevor.
-
Anonymous(Private) July 9, 2018 at 10:27 pm #182196
I have multiple drop-downs based on taxonomy. If i select a different taxonomy with one already selected, the query is appended to the previous selection. Is it supposed to work this way, or can I have it set to clear the previous result when a new selection is made?
careers/?_sft_sales=sales-operations-manager&_sft_product=user-researcher
Trevor(Private) July 10, 2018 at 9:48 am #182210Searches normally work this way, and it is the intended behavior of our search forms. What you are wanting is for the user to be able to select only ONE search term? If so, that can only be done with custom javascript, which, when one field/term is clicked, deselects any selections in the other fields.
Trevor(Private) July 10, 2018 at 6:53 pm #182265Sorry, but I do not have an example I can give you, as I don’t think anyone has asked for this before.
You would need to employ a coder to do this for you.
If you could forgo the single reset button (and have either no reset button or one per field), you could set this up as a separate form for each field, and one form with all the fields – just to use that as the results shortcode.
That would do as you want. I am not sure if Ajax would work with that though.
-
AuthorPosts