Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Reference Number Trimmer

Security covered Maintenance fixes only 30 sites

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.

Drupal 8–11

Ask your assistant about Reference Number Trimmer

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Release Timeline

Releases

Version Type Core PHP Release date
1.1.0 Stable 8–11 Mar 23, 2026
1.0.2 Stable 8–10 Oct 7, 2023
1.0.1 Stable 8–10 Sep 20, 2023
1.0.0 Stable 8–10 Aug 2, 2023
1.x-dev Dev 8–11 Aug 2, 2023