Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Instructions
- Add the desired dependent fields on your entity type, for example Music genre > song titles
- Create a new Entity Reference Source view, the entity type displayed needs to be the children (song titles). Build the view so it accepts the parent argument entity id or uuid and displays the expected results on the view preview.
- Edit the children field settings and select the "Make field dependent using views" option on the Reference type.
- Select the new view and parent field (in our example music genre). And optionally configure arguments.
- 💃Dance 💃
Please note that both widgets (parent and children) need to have the form display configured as "Select list" for this module to work.
Credits and thanks
The Drupal 8/9 version of this module is heavily based on the business rules module and it can be considered a lightweight option for those cases where only the dependent fields feature is wanted.
The Drupal 6 version of this module was created by Radiant Flow and sponsored by Spirit Library
Similar Modules
- Business rules: Allow site administrators to define conditionally actions execution based on events. It includes a way to do dependent fields.
- Dependant reference method: Has the same spirit as this module but has been untouched for a while and doesn't have a D9 version.
Project information
- Module categories: Site Structure
- 754 sites report using this module
- Created by smoothify on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.