Expression Field

Categories

Component ID

2915044

Component name

Expression Field

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

111

Component created

Component changed

Component body

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.