Clear search when a new drop down item is selected

Forums › Forums › Search & Filter Pro › Clear search when a new drop down item is selected

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #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
    #182210

    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.

    Anonymous
    #182263
    This reply has been marked as private.
    Trevor
    #182265

    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.

Viewing 4 posts – 1 through 4 (of 4 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.