Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Figure 2: Calculation Field Properties

NameDescription
  
  
  
IDElement ID (By declaring as "total", a corresponding database table column "c_total" will be created)
LabelElement Label to be displayed to end user.
Variables
NameDescription
Variable NameDeclare a name to store current row equation result.
Field ID

Form Field ID to retrieve.

In the example above, we are summing at a specific column from a Form Grid.

Form Grid ID: entries

Column in Form Grid: formattedAmount

Field ID to be filled in: entries.formattedAmount

Multivalue Operation
  • Sum
  • Avg
  • Min
  • Max
EquationArithmetic operation using the variables declared above.  

 

Figure 2: Calculation Field Properties - Advanced Options

 
NameDescription
  
  
  
  
  
  
Validator

Attach a Validator plugin to validate the input value.

Info
titleWhen will validation takes place?

Validation will takes place whenever form is submitted except when it is submitted as "Save as Draft".

Formatting Style
  • US Style Formatting (1,000.00)
  • European Formatting (1.000,00)
Number of DecimalNumber of Decimal
PrefixPrefix of the calculated value
PostfixPostix of the calculated value
Use Thousand Separator?Thousand Separator toggle.
Hidden?Shows this element to the end user.
Display as Label?Displays the value of the element as plain text.
Workflow Variable

If the form is part of a workflow process, upon saving of the form (by clicking on "Save as Draft" or "Complete" button). The value in this input field will be saved into the corresponding workflow variable named here.

Info
titleUsing a non-existent Workflow Variable name

You will get the following warning with the name printed out (e.g. status) in the server log if you attempt to map to a non-existent Workflow Variable.

Code Block
context attribute status does not exist in process context - adding new attributes to the process context is not allowed