Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Field Expression

Security covered Under active development 124 sites

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.

Drupal 10–11

Ask your assistant about Field Expression

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

  • token Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Oct 2023
Latest release
5 days ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.1 Stable 10–11 Oct 11, 2026
2.1.0 Stable 10–11 Aug 8, 2026
2.0.3 Stable 9–11 Jan 25, 2026
2.0.2 Stable 9–10 May 17, 2024
2.0.1 Stable 9–10 Oct 25, 2023
2.0.0 Stable 8–9 Oct 25, 2023
2.x-dev Dev 10–11 Oct 25, 2023