Exclusive Boolean ensures that only one node or term per entity bundle can have a specific boolean field enabled at any given time.
Currently it only supports content types and taxonomy vocabularies.
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 or term as usual
Upon saving, the module automatically unchecks the same field on all other entities of the same type
The most recently saved entity 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 or taxonomy vocabularies
Enforcement happens automatically during entity save
Once enabled, no further configuration is required
The logic is scoped to the entity 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 or taxonomy vocabulary
Automatic and reliable on node save
No manual cleanup required
Lightweight with minimal performance impact
No external dependencies
Project information
- Project categories: Content editing experience
18 sites report using this module
- Created by lara_z on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



