Mathematical Operationv5
The Mathematical Operation action calculates a formula from form field values and writes the result to a selected field. The calculation runs in the browser; no query is sent to the server.
Fields are written as $PFieldName$ in the formula. Example: ($PQuantity$ * $PUnitPrice$) * (1 + $PVatRate$ / 100). Values entered with a comma as decimal separator are converted to a dot.
The action is usually bound to the Value changed event of the related fields or to a button. The result must be numeric; if the formula is invalid, the field is not changed.
Note: to turn a field permanently into a calculated (read-only) field, use the Calculate Form Fields action.