Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
The Calculation Field allows you to perform a series of arithmetic computations to a set or a series of fields.
The example below shows on how you can sum up the amount field from a using the Form Grid.
Figure 1: Configuring and obtaining Obtaining the field Field ID from a Form Grid.
In the Calculation Field 's configuration, add in a new variable that will map it to the field set in the Form Grid earlier. Match the From Grid's ID and field ID into in the variable field ID, as shown below.
Figure 2: Configuring the calculation field.Calculation Field
Figure 3: Calculation Field in Action
The "Equation" setting of Calculation Field supports Javascript Math Object. For example, to find the max number among several fields in a form, you can use Math.max() in the "Equation".