Better Exposed Filters

Module Drupal Illustration Voir sur
Nb téléchargements : 170254


  • Code
  • Documentation
  • Miscellaneous
  • User interface





permet de remplacer dans views le default single- or multi-select boxes with radio buttons or checkboxes


Status : Published
Projects : Modules
Maintenance status : Actively maintained
Development status : Under active development
Supported Branches : 6.0., 8.x-4., 8.x-5.
shield Stable releases for this project are covered by the security advisory policy.


The Better Exposed Filters module replaces the Views' default single- or multi-select boxes with radio buttons or checkboxes, respectively. Description fields and Select All/None links can be added to exposed filters to make for a better user experience.
Views Filters is a powerful tool to refine the results returned by a given view. When you expose a filter, you allow the user to interact with the view making it easy to build a customized, advanced search. For example, exposing the node type field as a filter lets your site visitor limit their search queries to just blog entries. Better Exposed Filters gives you greater control over the rendering of exposed filters.

Why use this module? Because it provides a better user experience than the default option. Try telling a client that they should click on an option, then scroll to the next option and ctrl+click on it. Don't just click 'cause you'll lose your first selection. Oh, and ctrl+click again to unselect an option... Yeah, not user-friendly.

People understand checkboxes and radio buttons.

Drupal 9:

The 8.x-5.x version of BEF is compatible with Drupal 8.8, 9, and later.

With Drupal 9, jQuery UI is no longer included in the core and will need to be added through contrib modules. @see
The jQuery UI Touch Punch library will not automatically be installed with this module and will either need to be downloaded manually and placed in the libraries folder or included with the patch in


Modules that provide additional BEF widgets:

Drupal 8:

The Drupal 8 branch is in active development. If you have immediate need of a specific feature in BEF, please contact a maintainer to discuss sponsorship. BEF will work best if you are at least using Drupal 8.3 and you should be using newer.

Roadmap towards version 8.x-4.x
Version 4 of the module is actively being worked on for Drupal 8. You can find the roadmap in #3047739: [meta] Roadmap to Stable 8.4.x Better Exposed Filters Release. The new version is a complete rewrite of 8.x-3.x and introduces a more extensible plugin architecture.

Upgrading from 8.x-3.x to 8.x-4.x
We have tried to provide an easy upgrade path from version 3 to version 4. Running the update hooks will try and update your views BEF configuration to be compatible with version 4. After the updates, you should clear the caches, or it will result in a fatal error.


Note: We will no longer commit any new code against the 8.x-3.x version. Feature requests should be made against the 8.x-4.x version.

Drupal 7:

The 7.x branch is in maintenance mode and new feature requests should be focused on Drupal 8. Feature requests for Drupal 7 will generally not be considered unless they are accompanied by a patch. :)

What else can I do with BEF?

The BEF handbook page provides some basic recipes making exposed filters a much better user experience.

  • Add help text for each exposed filter
  • Tame long lists with scrollable checkbox/radio button lists or select all/none links
  • Provide instant feedback by updating the View using AJAX whenever an exposed filter is changed
  • Use the jQuery Slider widget for greater-than, less-than or in-between types of filters

If you've got any ideas not covered on the handbook page, add a feature request to the issue queue. You can also rate this module on DrupalModules.

Remembering mikeker - A note on module ownership & maintenance.

In November of 2017, the original author and long-time maintainer of the Better Exposed Filters module Mike Keran (mikeker) was diagnosed with inoperable cancer. He died on January 1st, 2018. Mike was an amazing human, and his death is a great loss to us all. He gave selflessly of his time to several communities including Drupal, and he brought his joy and passion with him everywhere. In honor of his memory, and in order to ensure that Mike’s contributions to Drupal are maintained, several members of the Seattle Drupal community have gotten together and offered to be the maintainers of BEF. We intend to advance the D8 branch where we can and to manage bug fixes and security patches for D7 as needed. Please be patient with us while we work to understand Mike’s intent and the code he left behind.

Toutes les informations proviennent du site