Hide "- Any -" in radio view if no term is available.

Created on 18 March 2021, over 3 years ago
Updated 16 May 2023, over 1 year ago

Steps to reproduce

  1. Create a node view with a taxonomy filter "terms" with "select list" as output and keep "Allow multiple selections" unchecked.
  2. Use BEF with "Show only used terms" and choose "Checkbox/Radios" as "Exposed filter widget.
  3. In case of no used terms we will have a view output with "- Any -" but no terms. This is not really logically for site users.

Proposed resolution

Add an option "Hide filter output if no term is used" in the BEF option. The best way would be to hide the Filter completely.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany demonde

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany demonde

    To me the option "Hide filter, if no options" only works if an exposed filter has the setting "Allow multiple selections".

    In case of a single selection filter with no results the filter is still visible with "- Any -".

    But I have not checked this yet on a clean empty installation so there might be another intererence but I donnot think so.

  • 🇨🇦Canada megan_m

    I'm finding the same as #8. And also, if I have "Make filter options collapsible" checked, then the collapsible box still appears.

Production build 0.71.5 2024