Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Exclusive boolean

22 sites Security covered
View on drupal.org

This module ensures that only one node of a specific content type can have a particular boolean field enabled at any time. When saved, it automatically unchecks that field on all other nodes of the same type, making the most recently saved node the only one with the field set to true. This is useful for scenarios like having a single featured item or an active announcement.

Exclusive Boolean ensures that only one node per content type can have a specific boolean field enabled at any given time.

In many Drupal projects, editors need to mark a single piece of content as featured, highlighted, primary, or active. By default, Drupal allows multiple nodes to have the same boolean field checked, which often requires custom code or manual cleanup.

This module solves that problem automatically.


What it does

When Exclusive Boolean is enabled on a boolean field:
Editors can check the field on a node as usual

Upon saving, the module automatically unchecks the same field on all other nodes of the same content type

The most recently saved node becomes the only one with the field set to TRUE

No additional actions are required from editors.

How It Works
Adds an “Exclusive” option to boolean fields on node content types
Enforcement happens automatically during node save
Once enabled, no further configuration is required
The logic is scoped to the content type and field where it is activated

Typical use cases
Homepage featured content
One active announcement or alert
A single “current” event
One primary configuration or reference node

Key features
Works with core boolean fields
Enforced per content type
Automatic and reliable on node save
No manual cleanup required
Lightweight with minimal performance impact
No external dependencies

Activity

Total releases
3
First release
Feb 2026
Latest release
5 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.2 Stable Feb 11, 2026
1.0.1 Stable Feb 11, 2026
1.0.x-dev Dev Feb 11, 2026