Scalar Outputs
To include scalar outputs (i.e. Text, Number, True/False, Classification) in your Word or CSV template, simply write the placeholder name in curly brackets. For example, if you have a Prompt named “Company Name” with the placeholder company_name, you can write:Form Outputs
You can treat the values of a Kolena form Prompt as key value pairs. When using form data in templates, you can access individual fields using bracket notation:person_info with the fields ["Name", "Age", "Email", "Phone"], the unused fields are ignored.
Table Outputs
You can loop over the values of a Kolena table Prompt.{{ payments }} Prompt gave me a table with details on individual payments, the above syntax would allow me to replicate that table (with formatting) into my templated output. Note that the field being retrieved from the item must match the Prompt’s table columns but the header columns used in the template are free to differ.
Referencing Specific Table Rows
If you wish to reference a specific row from a table Prompt, you can do so using bracket notation. For instance, to reference the first row’s Payment Date from apayments table Prompt, you can use:
Conditionally Displaying Sections
You can conditionally display a certain section from the template file based on Prompt values using theif syntax:
{{ tax_value }} Prompt retrieves a number greater than zero, and will otherwise not be displayed in the templated output.
Reserved Placeholders
The following placeholders are automatically provided and can be used in templates:{{ _kolena_date }}: Date of the Agent Run in UTC, formatted asYYYY-MM-DD.{{ _kolena_agent }}: Name of the Agent running the Prompt.
{{ sheet_name }}{{ tpl_name }}
