Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Field Fallback Formatter

Security covered Under active development 8 sites

This module allows you to display a fallback field's content when a primary field is empty. It is compatible with both Field UI and Layout Builder.

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
Drupal 10–11

Ask your assistant about Field Fallback Formatter

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

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
May 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Jun 5, 2024
1.0.0-beta1 Pre-release 10–11 Jun 5, 2024
1.0.0-alpha1 Pre-release 10–11 May 15, 2024
1.x-dev Dev 10–11 May 14, 2024