- Issue created by @mxr576
When using BEF with a large number of taxonomy terms or other options displayed as checkboxes or links, users often struggle to find specific items in the list. Currently, users must manually scan through potentially dozens or hundreds of options to find the specific value they're looking for. This creates a poor user experience, especially for taxonomies with many terms or when users know exactly what they're searching for.
Adding a search box above the checkboxes or links would significantly improve usability by allowing users to quickly filter the displayed options, making it easier to find and select specific items without having to scroll through the entire list.
1. Create a view with an exposed filter using a taxonomy with many terms
2. Configure Better Exposed Filters to display the filter as checkboxes or links
3. Notice that there is no way to search or filter the list of available options
4. Observe how difficult it is to find a specific term in a long list
Add a search functionality to Better Exposed Filters that allows users to filter the displayed checkboxes or links. This would include:
1. A new configuration option in the BEF settings to enable search for specific filters
2. A text input field that appears above the list of checkboxes/links when search is enabled
3. JavaScript functionality that filters the displayed options in real-time as the user types
4. Appropriate styling that integrates with the existing BEF interface
The search would filter options by matching the entered text against the option labels, hiding non-matching items and showing only those that contain the search text.
1. Implement the new configuration option in the BEF settings form
2. Create the search input field and associated markup
3. Develop the JavaScript to handle real-time filtering of options
4. Ensure the feature works with both checkbox and links display modes
5. Test with various filter types and configurations
6. Update documentation to explain the new feature
- New configuration option in the Better Exposed Filters settings
- Search input field above checkbox/link lists when the feature is enabled
- Visual filtering of options as users type in the search field
New configuration options will be added to the Better Exposed Filters configuration schema:
- Boolean field for enabling search functionality on a per-filter basis
- Optional configuration for search placeholder text