Better Exposed Filters

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.

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.

Versions, versions, versions...

Better Exposed Filters supports both Drupal 6.x and 7.x and Views 2.x and 3.x. Though there is no Views 2.x on Drupal 7.x so only 3.x is supported. Confused? Me too...

Let me make this simple:

  • Drupal 6.x with Views 2.x: Use the 6.x-2.x branch (current stable release: 6.x-2.0-beta1). Once a final 2.0 release is made, this will become a bug-fix-only branch.
  • Drupal 6.x with Views 3.x: Use the 6.x-3.x branch (current stable release: 6.x-3.0-beta1).
  • Drupal 7.x with Views 3.x: Use the 7.x-3.x branch (current stable release: 7.x-3.0-beta1)

Now that Views 3.x has a release candidate, the Views 3 branches are the "recommended" releases. If you're using Views 2, be careful when using Drush -- you need to specify the 2.x branch. E.g.: drush dl better_exposed_filters-6.x-2.0-beta1

Drupal 7.x Support

The 7.x branch is in active development and the beta1 release is the latest stable build. Keep in mind that there are still plenty of bugs in both BEF and Views for Drupal 7 and the combo should be well tested befor use on production sites. The hope is to have BEF 7.x-3.0 release when Views 7.x-3.0 is released. Kind of a #V7CX pledge...

If you find bugs in the 7.x release, please add them to the issue queue and set the version number to 7.x-3.x. Patches, of course, are more than welcome!

Views 3.x Support

Better Exposed Filters works with Views 3 Alpha 3 or greater. Note that there is currently no simple upgrade path from Views 2.x to Views 3.x (see #714444: Need a way to upgrade BEF settings from Views 2.x to Views 3.x) other than rebuilding the BEF settings.

Also, the BEF settings are no longer in the filter options form (as shown in the image above), but in the Exposed Form settings form. See the handbook page's usage section for more details.

What's new?

The 7.x-3.x-beta1 release now includes support for the jQuery UI Datepicker instead of a textbox for date-related fields. Since Drupal 7 ships with jQuery UI in core, my hope is to start offering these as options in BEF. If you have any suggestions, please add a feature request to the issue queue.

(Note: Support for fields supplied by the Date module is a little funky until #392836: Exposed Date filter format (in Views) and/or #502824: Date format in exposed filter (views) are resolved).

Project Information

Downloads

Recommended releases

Version Downloads Date Links
7.x-3.0-beta1 tar.gz (21.86 KB) | zip (25.84 KB) 2011-Aug-02 Notes
6.x-3.0-beta1 tar.gz (20.16 KB) | zip (23.78 KB) 2011-Aug-03 Notes

Other releases

Version Downloads Date Links
6.x-2.0-beta1 tar.gz (22.7 KB) | zip (26.6 KB) 2011-Jun-09 Notes
6.x-1.0 tar.gz (17.08 KB) | zip (21.87 KB) 2010-May-25 Notes

Development releases


Maintainers for Better Exposed Filters

  • mikeker - 117 commits
    last: 8 weeks ago, first: 2 years ago

Issues for Better Exposed Filters

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 15 Feb 10
nobody click here