Drupal is a registered trademark of Dries Buytaert
Release: Paragraphs 8.x-1.23 Minor update available for module paragraphs (8.x-1.23). Release: AI (Artificial Intelligence) 1.4.6 Minor update available for module ai (1.4.6). Release: AI (Artificial Intelligence) 1.3.11 Minor update available for module ai (1.3.11). Release: Search and Replace Scanner 2.0.0 Major update available for module scanner (2.0.0). Release: Chosen 5.0.7 Minor update available for module chosen (5.0.7). Release: amazee.ai Private AI Provider 1.4.0 Minor update available for module ai_provider_amazeeio (1.4.0). Release: Content Packages 1.2.0 Minor update available for module content_packages (1.2.0). Release: Instagram Feed Block 1.0.2 Minor update available for module instagram_feed_block (1.0.2). Module Revived: Entity Browser 8.x-2.16 Module entity_browser updated after 11 months of inactivity (8.x-2.16). Usage Milestone: Media entity Twitter Module media_entity_twitter crossed 10,000 active installs.

This module provides alternative widgets for autocomplete reference fields to hide the entity ID, making them less confusing for content editors. It functions as a temporary solution until this feature is added to Drupal core.

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

Tracked releases
1
Tracked since
Mar 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.1.0 Stable Mar 23, 2026