Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Field Token Value

3,810 sites Security covered Drupal 10–11
View on drupal.org

This module allows you to create a field whose value is generated using tokens, typically from other fields or system information. It's useful for combining data from multiple sources or customizing output strings dynamically.

This module creates a Field API type and widget which allows a field to be created with the value containing tokens. A simple field formatter is also provided to allow for the field value to be output on the page.

The value and tokens for the field are set within the instance settings with the field value being set in a presave.

An example of when this module could be useful is if you are wanting to combine the output of multiple fields for use in Views, or providing tokens within an additional string like "This page was last updated [node:changed]". This field is then available within the manage display of the entity bundle.

Note: The input field with the default value in the create/edit form is hidden. You can tell whether it is working, as the field value should display once saved. If it doesn't then it is likely that the token couldn't be replaced which is likely because either the token itself isn't available at the time of saving or the token was not added correctly and can't be found.

Requirements

  • Concat Field: Concatenates the display values of selected fields within the bundle into a single field on save. Does not use tokens and only concatenates the field values with a space.
  • Field default token: Enables the use of tokens as field default values. Adds the option to existing fields instead of creating a new field. Because it is a default value it can be overwritten on the entities creation form.
  • Computed Field: Allows for fields to be populated through the use of PHP code, including other other values. This module is intended to be used by PHP developers to insert & execute PHP code on a Drupal website.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
3.1.0 Stable 10–11 Feb 25, 2025