Functions & Operators
Most formatting can be done in the settings for the Fields Token. This is mainly used for formatting that is not yet supported in the Fields Token UI.

Documint uses an enhanced version of Handlebars as its templating engine. This means all valid Handlebars syntax is valid Documint syntax. Below is a list of custom functions that can be used in your Documint templates.
Combining Functions
You can combine functions by wrapping the inner function in parenthesis.
//Example
{{$multiply ($add amount_1 amount_2) ($add amount_3 amount_4)}}Here we're using the $add function to sum two sets of values then multiplying them together. Functions in parenthesis will be evaluated first and returned to its parent function.
General
$calc
The $calc function is a powerful expression evaluator that enables complex calculations, string manipulations, array operations, and provides a secure sandbox environment within your templates.
$calcMath
$add$subtract$multiply$divide$sum$min$max$mean$round$floor$ceilList/Arrays
#each$filter$group$joinHelpers
$extname$inspectContent
$link$mdLast updated
Was this helpful?