Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

Views Filter OR NULL extends standard Views filter handlers (string, numeric, date, boolean) with OR NULL operator variants. This solves a common limitation: when using grouped filters, it is impossible to natively combine a condition with OR NULL to include rows where the field has no value.

Features

  • Adds OR NULL variants for every single-value operator in string, numeric, date, and boolean filters (e.g. "Contains OR NULL", "Equals OR NULL", "Less than OR NULL").
  • Each new operator returns rows where the field matches the condition or the field has no value (NULL).
  • Designed for use in grouped filters where fields are optional and NULL rows must not be excluded.
  • Drop-in replacement: the new filter handlers extend the native ones and appear in the Views UI like any other filter.

Use case: A view listing events filtered by a category field. Some events have no category (NULL). Using "Equals OR NULL", the filter returns events of the selected category plus uncategorized ones — impossible with the native "Equals" operator inside a grouped filter.

Post-Installation

No configuration page. After enabling the module:

  1. Open or create a View.
  2. Add a filter on a field (text, number, date, or boolean).
  3. Change the filter handler to the OR NULL variant (e.g. String OR NULL).
  4. Select an operator ending in OR NULL and enter the filter value.

Additional Requirements

Drupal core Views module (included in Drupal core since 8.x). No additional modules or libraries required.

No specific recommendations. The module works out of the box with any Views-based setup, including exposed filters and grouped filters.

Similar projects

Views Filter OR NULL is the only module known at this time specifically targeting the OR NULL operator gap in grouped and exposed filters.

Activity

Total releases
2
First release
Jun 2026
Latest release
20 hours ago
Release cadence
0 days
Stability
0% stable

Releases

Version Type Release date
1.0.0-beta1 Pre-release Jun 3, 2026
1.0.x-dev Dev Jun 3, 2026