Forums Forums Search & Filter Pro drop down filter(auto count) not working properly?

Viewing 10 posts - 11 through 20 (of 21 total)
  • Trevor
    #64585

    I think you would have to use custom javascript to do that.

    Anonymous
    #64587

    Could you tell me which js function to modify?
    I don’t see any js event bound to dropdowns.

    Trevor
    #64603

    You would have to write your own code. I would not know where to start. This is well outside the scope of our normal support and something I could not do.

    Anonymous
    #64610

    I understand.
    BTW, Can’t I use these hook to filter dropdown?
    sf_edit_query_args or sf_input_object_pre

    https://www.designsandcode.com/documentation/search-filter-pro/action-filter-reference/

    Trevor
    #64614

    This:

    sf_input_object_pre

    will allow you to modify the html elements, yes. My bad. I am not sure how you would use it in this context though.

    Anonymous
    #64616

    Does this work also on ajax update?

    Trevor
    #64625

    Yes, it should do.

    Anonymous
    #64634

    What’s proper way to get query parameter in sf_input_object_pre?

    Anonymous
    #64663

    Is this also work in sf_input_object_pre that you gave me?

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1726)->current_query();

    Anonymous
    #64668

    $searchandfilter worked in sf_input_object_pre.
    Form works as I expected now.

Viewing 10 posts - 11 through 20 (of 21 total)