This module allows fields to only be required when their associated entity reaches a certain publish state. For example, you could keep a certain field optional while editors are working on a draft and mark it as required when they are marking the entity as ready for review, or when they try to publish the entity themselves.
Post-Installation
After installing the module, visit the edit form of the field you want to change and under 'Choose a required strategy' choose 'Required by publish state'. Afterwards, you can choose whether the field should be required when the entity is Published or Unpublished.
Similar projects
- Required by Content Moderation state: allows fields to only be required when their associated entity reaches a certain Content Moderation state.
- Required by role: allows fields to only be required when the current user has a certain role.
Ask your assistant about Required by publish state
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | 10–11 | Oct 27, 2026 |