Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: DonorPerfect 1.0.20 Minor update available for module donorperfect (1.0.20). Release: Bootstrap Cloud 7.1.5 Minor update available for theme bootstrap_cloud (7.1.5). Release: MCP Sentinel 2.23.1 Minor update available for module mcp_sentinel (2.23.1). Release: Audit Chain 1.9.1 Minor update available for module audit_chain (1.9.1). Release: Menu Autopilot 1.4.1 Minor update available for module menu_autopilot (1.4.1). Release: GraphQL Compose Codegen 1.4.1 Minor update available for module graphql_compose_codegen (1.4.1). Release: Field Guard 1.3.1 Minor update available for module field_guard (1.3.1). Release: Webshare 2.0.1 Minor update available for module webshare (2.0.1). Module Revived: Flag for Someone Else 1.0.2 Module flag_fse updated after 9 months of inactivity (1.0.2). Security Coverage: smart 404 Module smart_404 now has official Drupal security advisory coverage.

Reference Number Trimmer

18 sites Security covered Drupal 8–11
View on drupal.org

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.

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
Mar 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.1.0 Stable 8–11 Mar 23, 2026