Support Forums

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

Forums Forums Search & Filter Pro Pre-checked option | Multiple Forms

Viewing 5 posts - 1 through 5 (of 5 total)
  • onflow
    #235249

    Hi Trevor,

    https://staging.revento.io

    When you write down let’s say “marketing” then it redirects to results / filter, but on the results page I want marketing checkbox to be pre-checked. What exactly should I tweak inside of php code? Appreciate your time! Thank you.

    Trevor Moderator
    #235281

    Because it is being sent as a search string, we cannot transpose that to a term filter, but you should add a search box to that form in the sidebar so the search term can be pre-populated in the search box.

    A problem would otherwise arise if a user searched for a term not exactly matched in the terms listed in the filter on that page. For example, if they were to search for market.

    onflow
    #235398

    Thank you, Trevor, for your reply!

    But if for example, we can do on the client-side via Javascript, that if word marketing equals URL string marketing, then it just adds class marketing sf-option-active?

    onflow
    #235400

    Because people who will be using the search form, we are not going to give them the ability to write whatever they want, only basically categories that are in the filter on the result page

    Trevor Moderator
    #235448

    Ah, I see. You would need to set up a WordPress rewrite to do this. There are a few examples in this forum, but yours would need to be specially written. Here is an example:

    https://support.searchandfilter.com/forums/topic/integrate-with-theme-search/#post-207270

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.