Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Field Expression

123 sites Security covered
View on drupal.org

This module adds a new field type that can evaluate mathematical expressions. It supports using dynamic values from other fields and can either calculate the result when content is saved or when it is displayed.

Defines a new "Expression" field type which will evaluate a mathematical expression.

Features

  • Token module support. It's recommended that you use token so that your expressions can be evaluated with dynamic values from other fields. Otherwise you'll only really be able to hard code the expression on the field settings.
  • Default values for tokens that don't resolve
  • Ability to have the expression evaluated when the field is rendered (otherwise it is evaluated only when the node is saved and stored in the database as the field value)

This module is sort of a D8 successor to Mathfield. Doesn't have all the features of mathfield, but it looks like we're using the same underlying expression evaluation library so should be able to do roughly the same level of mathematic evaluation.

Activity

Total releases
1
First release
Jan 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.3 Stable Jan 25, 2026