Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Pre Selected Filters on search results

Viewing 6 posts - 1 through 6 (of 6 total)
  • John Luhr
    #203415

    Hi,

    Is it possible to create a results page based on the search results with the categories pre-selected

    Example:

    I have categories as per below

    Council
    – Companion Animals
    – Finance
    – Governance
    – New Councils
    – Programs

    I have a search box that is for Companion Animals

    Users searches in this search box and results are displayed on a new page displaying all posts with category Companion Animals – Filter is selected as Council / Companion Animals

    User wants to expand their search and also include Governance category so instead of doing a new search, they can just tick Governance as well.

    Trevor Moderator
    #203427

    You can only do this using some PHP code. This post has a snippet that shows an example:

    https://support.searchandfilter.com/forums/topic/set-default-radio-box-checked-to-different-category/#post-203304

    Note the caveat that it will only affect results after the search is made.

    John Luhr
    #204029

    Hi Trevor,

    I would need to do the same for multiple different search forms. I have 7 different forms on the site so far, and I would like them to simply filter my selections.

    Is this code going to work?

    Trevor Moderator
    #204031
    This reply has been marked as private.
    Trevor Moderator
    #204587
    This reply has been marked as private.
    John Luhr
    #205195
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Pre Selected Filters on search results’ is closed to new replies.