Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Views filters populate

5,465 sites Security covered Drupal 10–11 Views ecosystem
View on drupal.org

This module allows a single exposed filter to populate and search across multiple other non-exposed filters. It enables flexible searching on various fields, including those in aggregated views, by sending the exposed filter's value to multiple targeted filters.

This module "populates" other filters on the view with the provided value, allowing to use one exposed filter to search several others.

It's similar to the Global: Combine fields filter available on Drupal 8 and on Views 7.x-3.4+ but with the following differences:

  • Global: Combine fields can only be used on displays with fields, this one doesn't have that limitation.
  • Global: Combine fields concatenates the fields on the query and then filters by it, this could break aggregation and adds duplication issues. It also may have a performance hit. This module "populates" other filters, so it just works as if the filter value was provided.
  • Because you don't need the field to be added, it helps filtering on aggregated (GROUP BY) views.
  • Each field can have its own operator.
  • OR/AND can be combined as needed

It only populates non exposed filters that expects a string text field, so those filters that take an array (options) or special types won't work.

How to use this module

Let's assume that you have "First Name", "Second Name" and "Last name" on some entity and you'd like to use one expose filter to search on any of those fields.

1. Download and enable this module.

2. Create an OR group of filters for each of the fields that you want to search on; make sure you don't expose those filters and that you choose the appropriate operator that will accompany the value for each filter.

3. Add another filter found on the 'Global' section called 'Populate filters'.

4. Expose it and check the filters which you have previously added that you wish this exposed filter to populate, on our example they are first name, second name and last name. Remember that only supported and non exposed filters will be available for selection.

That should be it.

As a reference, this module was born out of ideas, suggestions and needs discussed in #451000: Apply One Exposed Filter to Multiple Fields.

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.2.0 Stable 10–11 Mar 12, 2025