This project is not covered by Drupal’s security advisory policy.

Field formatter conditions screenshot

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.

Supports

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 from/to has expired.

Rules actions

  • Hide a field.
  • Change image style.

Rules should always be a 'A field is rendered' event before they can be selected in the conditions dropdown on the "Manage Display" screens per field.

Dependencies

Field formatter settings

Comparison with Conditional Fields

  • CF uses a complete separate interface.
  • CF uses the States API on forms. FFC will never act on forms.
  • FFC has support for other fields.

See Conditional Fields

Articles and videos

Co-maintainer

veeraprasadd

Project Information

Downloads