Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Dynamic Reference Selection

88 sites No security coverage Drupal 10–11
View on drupal.org

This module dynamically filters the options available in an entity reference field based on the value selected in a parent field, using AJAX. This allows for creating dependent selection lists, like choosing a city after selecting a country.

Dynamic filtering for Entity Reference fields based on parent field values, with AJAX support. Lightweight and focused: ideal for projects that need dynamic reference filtering without the complexity of full rules engines.

Description

Dynamic Reference Selection allows you to create dependent Entity Reference fields using Views as the data source. The options in a child reference field are dynamically filtered based on the selection of a parent field, enabling use cases such as Genre > Song or Country > City selection patterns.

This module is a clean, modern fork of the Business Rules Entity Reference Selection plugin, offering the same dependent filtering functionality without the overhead of the full Business Rules module—which is no longer maintained. It also provides a more robust and flexible alternative to Dependent Field and Dependant Reference Method, which are not actively maintained and do not support Drupal 11.

How It Works

  • Configure a parent and child Entity Reference field (e.g., Genre and Song).
  • Create a View for the child entity (e.g., songs) with a contextual filter (e.g., genre ID or UUID).
  • In the child field settings, select "Dynamic Reference Selection" as the reference method.
  • Choose the View and map the parent field as the argument.
  • AJAX is used to refresh the child options when the parent selection changes.

Both parent and child fields must use the “Select list” widget in the form display for the dynamic filtering to work properly.

Credits

Inspired by and initially based on the Business Rules module’s reference plugin. Extended and maintained to support modern Drupal projects.

Similar modules

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jul 2025
Latest release
9 months ago
Releases (12 mo)
2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.3 Stable 10–11 Nov 20, 2025
1.0.2 Stable 10–11 Sep 2, 2025
1.0.1 Stable 10–11 Jul 15, 2025
1.0.0 Stable 10–11 Jul 11, 2025