Reference value pair
This module provides a new field type that combines an entity reference with a free text value, simplifying the process of storing a related entity alongside a descriptive value. It is useful for scenarios like associating units of measurement with numeric values, where the units are stored as separate entities.
The reference value pair combines an entity reference with a free text value field in one new field type.
Site builders often end up using field collection or entity reference modules when all they want to do is store a value and a reference (e.g. to a taxonomy term).
This module bundles the two things, a reference to some entity and a value together in one field. It can reference any entity, the value field is a simple text field.
One typical use is storing a measurement with its unit where the units are stored in a taxonomy (e.g 50 liter, 20 cm, 80 %).
Related Projects:
Depends on
Dependencies of the latest stable release
- field Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 4.0.x-dev | Dev | 9–10 | Mar 16, 2026 | ||
| 5.0.x-dev | Dev | 10–11 | Mar 16, 2026 | ||
| 5.0.2 | Stable | 10–11 | Defines a field type for storing a pair of an entity reference and a value. | Mar 12, 2026 | |
| 5.0.1 | Stable | 10–11 | Defines a field type for storing a pair of an entity reference and a value. | Mar 11, 2026 | |
| 5.0.0 | Stable | 10–11 | Defines a field type for storing a pair of an entity reference and a value. | Mar 11, 2026 |