Field Expression
122 sites
Security covered
Drupal 10–11
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.
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.