Skip to content

Define dependencies between fields based on their states and values.

License

Notifications You must be signed in to change notification settings

drupal-modules/conditional_fields

 
 

Repository files navigation

Conditional Fields

Define dependencies between fields based on their states and values. Conditional Fields is basically an user interface for the States API, plus the ability to hide fields on certain conditions when viewing content.

The Conditional Fields module 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.

You can, for example, define a custom “Article teaser" field that is shown only if a "Has teaser" checkbox is checked.

Limitations and Known Issues

  • Conditional Fields, for now, supports only core fields and widgets as dependee fields. Fields from other modules might work, but probably won't. Dependent fields, though, can be of any type.

Installation

Configuration and Usage

Users with the "administer dependencies" permission can administer dependencies at admin/structure/dependencies.

More details may be found (or contributed to) in the Wiki

Issues

Bugs and Feature requests should be reported in the Issue Queue

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Define dependencies between fields based on their states and values.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 88.9%
  • JavaScript 9.8%
  • CSS 1.3%