Configuring Form Field Calculations - Configuring Form Field Calculations - You can use calculations in forms to automatically generate values based on information entered by form users. Calculated values are updated automatically when the values used in the calculation change. - Content Innovation Cloud - Hyland Automate Modeler - Current/Hyland-Automate-Modeler/fzp9405094340784 - Current - Current

Hyland Automate Modeler

Platform
Content Innovation Cloud
Product
Hyland Automate Modeler
Release
Current
License
ft:lastPublication
2026-11-16T23:02:28.533499
ft:locale
en-US

You can use calculations in forms to automatically generate values based on information entered by form users. Calculated values are updated automatically when the values used in the calculation change.

Note: You can use a form variable to store or exchange the calculation result in the form or further in the process. For more information, see Creating Form Variables.

Form calculations use expression formulas to evaluate values from one or more form variables. The result of the calculation can be displayed in a widget and used in other calculations within the form.

The following configuration example multiplies the values of fields with the IDs Quantity and UnitPrice, then writes the result to a field named Total:

  1. Open the form.
  2. Create form fields that provide input values. For the example, the field IDs are: Quantity and UnitPrice
    The created field types must be compatible with the resulting calculated field, for example you can use Integer, Decimal, or Amount fields to get a numeric result.
  3. Create a form field that will contain the calculated result. For the example, the field ID is Total.
    Set this field to Read only if you don't want the user to be able to change the calculated value.

    The form should now have at least three fields:

  4. Optional: Add a button or form outcome if you want the calculation to be run only after the user clicks it.
  5. From the form properties, use the Edit form rules button to open the Edit form rules dialog box.
  6. Select Add form rule.
    A new rule is added to the dialog box.
  7. Configure the event that will trigger the calculations:
    Event source Description
    Field events > Field value changes

    Triggers calculation automatically when a field value changes.

    Field events > click

    Triggers calculation automatically when the user clicks the selected button.

    Form events > Outcomes > [Outcome name] > Clicked

    Triggers calculation automatically when the user clicks the selected form outcome.

    Form events > Form loaded

    Triggers calculation automatically when the form is loaded. This option can be used to calculate the initial value, before any inputs are changed.

    Note: If you want the Field events to react to change of any of the input fields, create a second rule.
  8. Click Add new action.
  9. Set the action type to Update field > Total.
  10. In the Payload section, locate the value field and select the Edit () button.

    The Edit variable mapping dialog box is displayed.

  11. Select the Formula tab.
  12. Enter the following formula: =${field.Quantity} * ${field.UnitPrice}.
  13. Click Update.
  14. Save the form rule.
  15. Save the form.
  16. Preview the form to confirm that the rule updates the value of the Total field when the form rule event occurs.