How to set up an action for mathematical operation and set the result as a field value

Created on 11 September 2022, about 2 years ago
Updated 25 March 2023, over 1 year ago

Problem/Motivation

I'm testing the 'Tamper: Math' Action plugin and want to set up a simple mathematical operation:

In my test-nodetype i have 2 decimal fields ([node:field_decimal_a], [node:field_decimal_b]) and want to sum up the values in a token to display as a stite message and set the summed value into a third decimal field [node:field_decimal_a].

I don't understand, in which input fields of the action interface i have to set the tokens [node:field_decimal_a] and [node:field_decimal_b] for the addition. Please give a hint.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

1.0

Component

User interface

Created by

🇩🇪Germany marco.b

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy kopeboy Milan

    The problem I found instead is that if your fields have a suffix the operation won't work and it won't give you errors, just the first input value back (together with suffix). So I could solve using [entity:field_a:value] and [entity:field_b:value].

  • 🇩🇪Germany marco.b

    @kopeboy
    Thank you for your valuable addition.

Production build 0.71.5 2024