required_by_content_moderation_state
Security covered
This module allows fields to only be required when their associated entity reaches a certain Content Moderation 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 Content Moderation state'. Aftwerwards, you can choose which Content Moderation states should make the field required.
Similar projects
- Required by role: allows fields to only be required when the current user has a certain role.