required_by_role
Security covered
This module allows fields to only be required when the current user has a certain role. For example, you could keep a certain field optional when administrators need to change something about an entity and mark it as required when editors try to do so.
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 role'. Afterwards, you can choose which roles should make the field required.
Similar projects
- Required by Content Moderation state: allows fields to only be required when their associated entity reaches a certain Content Moderation state.
- CCK Required by Role: same functionality, but only for Content Construction Kit (CCK) entities on Drupal 7.