Views Exposed Filter Switch

Component ID

2321957

Component name

Views Exposed Filter Switch

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This Views exposed filter plugin can be handy when a view has a lot of exposed filters and not a lot of space for them to fit. It creates a select list of every filter item and only shows the user the form item that they've currently selected. When submitting the form, only the item they've currently selected will be read from. Because of this, it should not be used in situations where users may want to use multiple exposed filters at the same time.

The screenshot comes from the plugin being applied on the admin content view's filters when using the admin_views module.

It works by extending the "Basic" exposed form plugin. The form settings will have all of the same options as that plugin.

To use:

  1. Enable this module like any other module.
  2. Add exposed filters to a view.
  3. Under "Exposed form style" in the Views UI for that view, click the currently selected plugin title (such as "Basic") to select a different form style.
  4. In the resulting window, select "Basic with filter search" from the options.
  5. Click "Apply".
  6. Have a look at your view's exposed filters!