Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Field Formatter Condition

Security covered Maintenance fixes only 343 sites

This module allows you to add conditional logic to field formatters in Drupal. You can configure rules on the "Manage Display" pages to hide fields based on various criteria, such as whether another field is empty, the current user's roles, or specific page paths. It also provides a plugin system to create custom conditions.

This module is an imitation of the module "Field formatter conditions (D7)" (ffc).

Adds conditions to field formatters. Configuration happens on the "Manage Display" screens of every entity type on a per field basis when clicking on the cogwheel on the right.

Simple conditions and actions

  • Hide source field when target field is empty.
  • Hide source field when target field is not empty.
  • Hide source field when current user has specific roles.
  • Hide source field on specific pages.
  • Hide source field when target field contains a specific string.
  • Hide source field when target field doesn't contain a specific string.
  • Hide link field if title is empty.
  • Hide date field if smaller/greater then today/custom date.
  • Hide if content from author
  • Hide if checkbox is checked (in current dev version)

Own conditions can be programmed via plugin.
Please read the README.md file.

Drupal 8–11

Ask your assistant about Field Formatter Condition

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Aug 2025
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
4.1.0 Stable 8–11 Nov 14, 2025
4.0.0 Stable 8–10 Aug 14, 2025
4.x-dev Dev 8–11 Aug 14, 2025