Formula field¶
This field allows you to create static box which will show results of calculations where other dynamic fields (and static values) can be used as arguments.
Hint
This field can be added to structured and PDF documents.
Following operations are available for any argument fields in the document:
SUM - returns arguments sum
PRODUCT - returns result of arguments multiplication
SUBTRACT - returns result of arguments substraction
DIVIDE - returns result of arguments division
Following operations can only be performed with a field inside a dynamic table (to specify table column for calculations select a field from this column):
SUM table column - returns table column cell values sum
COUNTA table column - returns number of non-empty cells in a column
MIN table column - returns the smallest value in table column
MAX table column - returns the largest value in table column
Next fields can be used as arguments in formulas: Number, Currency, Dictionary, Lookup, Duplicate and other Formula.
Note
If you use Dictionary, Lookup or their`s Duplicates, values will be parsed as numbers. All symbols except numbers and last period will be ignored in calculations. If there are several periods, only last one will be considered as decimal place separator, rest will ignored. This means that if you will pass “Abc@/.1.1.1” and “Abc@/.1.1.1” as arguments into SUM formula, it will return “22.2” as a result.
How to add formula field to the document¶
To add field to the document, use one of field adding methods with field icon in the Fields tab of template editor menu
Field creation form will appear, where you should set field attributes
Name - this is a name of a field
Placeholder - this text will be shown inside the field before it is filled in (can be left empty; field`s name will be used instead)
Operation - type of operation which will be performed with arguments
Argument (1, 2 and so on, appears after operation is selected) - arguments which will be used for calculation. They are parsed in strict order from first to last. If you will click an argument input, dropdown selector with available fields will appear. Static values can be typed in directly as well
Note
You can add more then 2 default arguments by clicking “+ add argument” link
Precision - number of decimal places allowed in field (no limit is applied if left empty)
Note
If value inside the field has more decimal places then allowed by precision attribute, all extra places will be trimmed. No rounding will be applied. E.g. if original value is 1.99 it will be changed to 1.9 if precision is set to 1 and will be changed to 1 if precision is set to 0.
Search - this attribute specifies if this field should be eligible for mailbox page search
Adapt to the local format - this attribute specifies if numbers will be formatted according to regional standard
Note
Numbers in envelope view will be formatted according to standard of a region which is selected on User profile page. You can see formatting example under region selector on that page. Numbers in printable versions of the documents will always be formatted according to platform region standard.
Show decimal zeroes - if enabled, zeroes will be added to fill all empty decimal places of field value
When all attributes are set, you can click Save button and field will be added. You can click field to see its properties and update them. Also you can delete the field in same menu.