Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Webform Labels and Values Tokens

Security covered Under active development 2 sites

Part of the Webform ecosystem · 225 projects

This module provides tokens for webform submissions that display both the label and the value of form fields. These tokens are useful for email notifications or other integrations, especially when combined with options to exclude empty fields, preventing leftover labels without corresponding values.

Provides tokens for Webform submissions that print both labels and values, to be used in e.g. mail handlers. This module is a replacement for the [webform_submission:values:element_key:withlabel] tokens that used to exist in the Drupal 7 version of the module.

These tokens are especially useful in combination with the Exclude empty elements option, because this way both the label and value are excluded when the value is empty and you're not left with dangling labels.

Features

  • Use [webform_submission:labels_values] to output all values with their labels
  • Use [webform_submission:labels_values:element_key] to output the label and value of a single element
  • Use [webform_submission:labels_values:element_key,another_element_key] to output the labels and values of multiple elements
  • Add :html to the end of the token to output the values as HTML
  • Add :text to the end of the token to output the values as text

Post-Installation

Once the module is enabled you can start to use the tokens, there is no additional configuration necessary.

Drupal 10–11

Ask your assistant about Webform Labels and Values Tokens

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Aug 2026
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Aug 7, 2026
1.0.x-dev Dev 10–11 Aug 7, 2026