This module provides a formatter which is able to render a fallback field if the actual field is empty. It supports Field UI and also Layout Builder.

Important:

  • If the current user does not have access to the field (which is utilizing Field Fallback Formatter to create the output), then neither the field, nor its fallback field gets rendered.
  • If the current user has access to the main field, but not to the fallback field, and the main field is empty, then nothing gets rendered.
Main field access Main field value Fallback access Fallback value Rendered
✅ Yes ✅ Has value Main field
✅ Yes ❌ Empty ✅ Yes ✅ Has value Fallback field
❌ No access ✅ Has value ✅ Yes ✅ Has value Fallback field
❌ No access or empty ✅ Yes ✅ Has value Fallback field
❌ No access or empty ✅ Yes ❌ Empty nothing
❌ No access or empty ❌ No access ✅ Has value nothing
❌ No access or empty ❌ No access ❌ Empty nothing
Supporting organizations: 
Founding, initial development.

Project information

Releases