Last Update 6 maanden geleden
Smart fields use a special tag that starts with "$". They cannot be provided by a user in the form. Those fields are build or calculated based on existing nonsmart regular fields. They can be used for simple or advanced automated calculations from provided values or other combinations.
Smart Fields to calculate values
You can use smart field to do simple and advanced calculations based on provided user form input.
Smart Fields Numbers vs Strings
If you want to accept strings and convert them into numbers for further calculations (useful if you integrate with the external system) you can use the special syntax within smart fields like : +[fieldname]. Example:
Use Special Filters to modify results
Smart Fields for conditions
You can use conditions to output element based on value provided from different field (from user)
General Condition Schema:
Show Current Time & Current Date with Format & Timezone
You can display current time or date using special smart field.
It supports two optional parameters:
format [optional] - output format using language code (12 hours vs 24 hours etc.) - Examples: en-US, en-GB, fr-FR, de-DE, pl-PL, es-ES, it-IT | Default: 'en-US'
timeZone [optional] - timezone in Intl format - Examples: America/Chicago, Europe/Berlin, Europe/Warsaw, Europe/Rome | Default: 'Universal' UTC Timezone
See list of Available Timezones:
If incorrect format / timezone will be provided Documentero will use default values.
Template Variable Assignments
Sometimes you want to calculate some value based on data input and reuse it across the document. You can do that using assignments within smart fields then you can use assign value withing Smart Fields or Smart Sections Multiple Times