Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

Total releases
3
First release
Aug 2025
Latest release
8 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
4.1.0 Stable Nov 14, 2025
4.0.0 Stable Aug 14, 2025
4.x-dev Dev Aug 14, 2025