You are here: Case management > Building a form > Adding a single-value field to a form > Calculating the value of a field

Calculating the value of a field

After you add a field to a form, you can use an expression to calculate the value of the field at run time. For example, you can associate the Total Time field with an expression that adds together individual values, such as hours and minutes, or generates a subtotal from a list of time sheets.

To calculate the value of a field:

  1. Open a case type in Case Designer.

  2. On the Life cycle tab, click an assignment or an approval step.

  3. Click Configure view.

  4. Set the display mode of a field to Calculated (read-only).

    Not all field types support this display mode.

  5. Click the Gear icon to open the Calculation dialog box.

  6. Define a calculation by calling a function, referencing properties in an expression, or creating an advanced expression.

  7. Click Submit.

At run time, the field is displayed in read-only mode. Your application evaluates the expression and stores the results in the property that is associated with the field.

Related Topics Link IconRelated information