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

Contributed module documentation

Conditional Fields

Conditional Fields 8.x-1.x allows you to manage sets of dependencies between fields. When a field is “dependent”, it will only be available for editing and displayed 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.

A simple use case would be defining a custom “Article teaser" field that is shown only if a "Has teaser" checkbox is checked, but much more complex options are available.

Module Page: https://www.drupal.org/project/conditional_fields

Developer documentation

Useful terms and a walkthrough of how the module operates.

Guide maintainers

mparker17's picture
zviryatko's picture
itsekhmistro's picture
OlgaRabodzei's picture