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). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Entity Reference Modal

222 sites Security covered Drupal 10–11 Entity ecosystem
View on drupal.org

This module enhances entity reference fields by providing an autocomplete widget that allows users to quickly search for existing entities or create new ones through a modal window. It supports custom form modes and allows for modal customization.

Base on module Entity Reference Modal Create. Module Entity reference modal has most bugs fixed and drupal 10 compatible. This module offers a autocomplete widget or quick search entity with an "Add new" button for entity reference fields within Drupal. With this module, you can effortlessly search and reference existing entities or create new ones using a modal window entity form. It provides complete support for form modes, which can be conveniently configured from the widget settings.

Key Features:

Quick search entity: It will list all the entities according to the method to select (note that it will not high performance work like module entity browser). If your entity field use view entity references, do not use pagination, you have to show all rows. it only supports bootstrap 5 theme, other theme use custom css by itself (There is a Load bootstrap option. If your admin interface is not bootstrap 5 admin, it will load bootstrap 5 cdn.)

Effortless Entity Creation: You can create new entities directly from the autocomplete widget by simply clicking the "Add new" button. This opens an entity form in a modal window, making entity creation a seamless part of your workflow.

Flexible Form Mode Selection: Choose the appropriate form mode for creating new entities within the modal window, ensuring that the entity is created with the specific settings you need.

Customizable Modal Settings: Adjust the modal's width and title to suit your site's design and requirements. You have full control over the modal's appearance.

Check permission: Check current user has right to create entity

Bundle Selection: While currently supporting a single bundle for the "Add new" modal, you can choose the bundle that best fits your needs when creating new entities.

User-Friendly Autocomplete: The autocomplete search field is similar to Drupal's core functionality, offering a smoother user experience without the "(id)" suffix (Tagify usage option is in progress).

How to Get Started:

  • Install the Entity Reference Modal module like any other Drupal module.
  • Navigate to the "Manage form display" of a Drupal entity that contains an entity reference field.
  • Set the widget to "Autocomplete (add new with Modal)."
  • Open the widget settings to fine-tune the module to your preferences. Adjust settings such as allowing the addition of new entities, specifying the "Add" button title (support html code)

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
1
Tracked since
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.7 Stable 10–11 May 28, 2025