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 No value for all option in dropdown

Viewing 4 posts - 1 through 4 (of 4 total)
  • Richard L McCollam II
    #73380

    I am using the plugin on this page – https://www.potatogoodness.com/recipes

    Instead of relying on default dropdown styling I am using a little library that gives me better CSS control over how they look. Everything works fine functionality wise except for one thing.

    You will notice on all of the dropdowns there is no “All” option. So when a user selects a value they cannot go back to filter without that option chosen.

    Without the styling they can because you provide the all option. However the reason it doesn’t work when styling is applies is because there is no value attribute for the “All” option.

    When I added my own with some simple javascript it would include it as a search criteria and break the search.

    What can be done, either on my end or yours, to get a value added to the “All” option in these dropdowns?

    Trevor Moderator
    #73621

    Sadly, that script is coded to ignore any option with an empty value. The script is VERY old and not maintained by its author. Why set the dropdowns as comboboxes in the Form UI and in the plugin settings use the Select2 script and then style them?

    Richard L McCollam II
    #74141

    I understand what the script I am using is doing.

    My question is if there is any sort of value that I can add to the filter that will not cause it to break.

    With some javascript I have added a value of 0 to it, but then that value factors into the search and returns no results.

    I just need to know if there is anything I can add to the value for the all option in a filter that will not enter the search string.

    Trevor Moderator
    #74506

    I do not think so. Our filter ignores only if the value is empty.

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

The forum ‘Search & Filter Pro’ is closed to new topics and replies.