Mautic Community Forums

Dynamic ("Calculated") Values in Campaign Actions

My idea is: Let’s finally allow Mautic users to use calculated values in campaign steps. E.g.

  • “Update contact field with current time & date” or maybe even

  • “Update contact field with value from elsewhere (e.g. from a different field)”

  • and maybe beyond contact data
    Not sure if we should start with the most important flavours, “hard-coded” - or if we should come up with a sophisticated general framework. Maybe we can fid something in between. :slight_smile:

I think these groups of people would benefit from this idea:

Why I think they would benefit from this idea:

Any code or resources to support this idea:

Are you willing to work on this idea?: Yep

What skills and resources do you need to explore this further?

This would indeed be a great feature to have! Thanks for the workaround you provided at Dynamic Values in Mautic Forms: Date, Time, URL, ... | Leuchtfeuer.com :+1:

This would be a great feature.

Some of the use cases of calculated fields I can think about are as follows:

  1. A formula field that could do a timestamp on a field when another field changes
  2. A formula field that could follow a logic of if, then…
  3. A formula that could do math operation (+,-,*,/) as well as functions like SUM, AVG, MEAN, MEDIAN

I am in need of (+,-,*,/) fields. Anyone have a solution for this?