Drupal is a registered trademark of Dries Buytaert
drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.14 Minor update available for module linkit (7.0.14). diff 2.0.0 Major update available for module diff (2.0.0). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). leaflet 10.4.8 Minor update available for module leaflet (10.4.8). single_content_sync 1.4.15 Minor update available for module single_content_sync (1.4.15). eca 3.1.2 Minor update available for module eca (3.1.2).

Reference Number Trimmer hides the ID for autocomplete reference fields by implementing new widgets.

This is being addressed in a core issue (https://www.drupal.org/project/drupal/issues/2881892), so this module is a stop gap until the feature is implemented in core.

Features

There are some cases where the ID of the referenced entities is confusing to the content editor or is not required by the design.

Without Reference Number Trimmer:

With Reference Number Trimmer:

Post-Installation

To use this functionality, go to the "Manage form display" page for entity type and for the widget of the required field select one of the autocomplete widgets with "hidden IDs" in the name.

Additional Requirements

The module depends on client-side javascript to work. So if javascript is not enabled in the browser, the normal autocomplete functionality will be used.

Similar projects

There are a number of other modules that can hide the IDs:

This module is intended to be light weight and to keep as much as the default Drupal behaviour as possible.

Future updates

I believe this module is "feature complete" so will not be accepting requests for additional features. But I will accept requests for bug and security fixes as well as issues with implemented tests.

Activity

Total releases
1
First release
Mar 2026
Latest release
1 month ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.1.0 Stable Mar 23, 2026