Advertising sustains the DA. Ads are hidden for members. Join today

On this page

Overview and Installation

Last updated on
3 July 2017

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Define dependencies between fields based on their states and values.
Conditional Fields for Drupal 7 is a user interface to the new States API, plus the ability to modify fields appearance and behavior on certain conditions when viewing content.

This documentation applies to Conditional Fields for Drupal 7. The documentation for the D6 version, with upgrade instructions, is here.

Overview

The Conditional Fields module allows you to manage sets of dependencies between fields. When a field is “dependent” on another field, it will be displayed and available for editing only if the state of the “dependee” field matches the right condition.
When editing a node (or any other entity type that supports fields, like users and categories), the dependent fields are dynamically modified with the States API.
You can, for example, define a custom “Article teaser" field that is shown only if a "Has teaser" checkbox is checked.

Installation

Install as usual, see Installing contributed modules (Drupal 7) for further information.

Help improve this page

Page status: No known problems

You can: