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).

This module provides a way to add multiple entity references in custom forms, similar to the entity reference autocomplete widget but without requiring field storage. It allows developers to create an autocomplete input field with buttons to add and remove individual entity references.

If non-entity custom form require a form element that allows adding entity reference and individual entity need to be added using it's own input field same as "entity_reference_autocomplete" widget with tags=false, this module provides that ability. As "entity_reference_autocomplete" require field storage attached to it, it only works with entity forms. This module is a light weight alternative that can be used for any custom forms. This module is only for developer use.

Features

Allows referencing other entities in a custom form. It provides an entity autocomplete input box and "add more item", "remove" buttons to add multiple reference entities using individual inputs.

Post-Installation

This is for dev use only, after installation this module enables a new FormElement type called "entity_reference_autocomplete_add_more".

Example code:

<?php
$form['field_name'] = [
      '#type' => 'entity_reference_autocomplete_add_more',
      '#target_type' => 'entity_type',
      '#title' => $this->t('Field label'),
      '#selection_settings' => ['target_bundles' => ['bundle_name'], 'match_limit' => 15],
      '#default_value' => [0=>['target_id' => 123],1=>['target_id' => 234]],
];
?>

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
2
Tracked since
Aug 2025
Latest release
8 months ago
Releases (12 mo)
1
Maintenance
Slowing

Releases

Version Type Core Release date
1.x-dev Dev 10–11 Dec 16, 2025
1.0.0 Stable 10–11 Aug 10, 2025