- This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Clear search when a new drop down item is selected
Tagged: dropdown, search reset
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
Searches 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.
Sorry, 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.