Preserve Template Formatting with Comments

Preserve Template Formatting with Comments

Often, when building a template, your formula or placeholder syntax is too long to fit in the designated area of the template.

The result is ugly word wrapping,g and it becomes harder to see how the template layout looks because of the distortion of the placeholder text.

Now, of course, the actual generated result still comes out just fine, but we wanted to make it easier to design your templates without having to constantly test the generated output to see if output formatting remained correct.

What we need is a way to “annotate” the placeholder/formula syntax onto specified text in the template.
Comments were the perfect answer, since these hover above the Word/Excel content without changing the actual layout.

Our template generation engine actively scans for comments that contain placeholder or formula syntax, and replaces the text linked to a comment with the placeholder/formula extracted from the comment itself.

Below is an example of a Word template that uses normal inline placeholders and formula syntax, resulting in word wrapping of the table cells:

Here’s the same template adjusted to use comments to hold formula syntax.
Note that the checkbox characters in the table cells are simply text linked to the comments.
Those are replaced by the outcome of the comment syntax when the template is generated.

More than a single comment linked to the same text is not supported.

Below is the output of the above template.

    • Related Articles

    • Using Formulas in Templates

      The platform has the ability to evaluate formulae just like those you would use in your Forms. You can read all about what a formula is and how to create them in the Form Screens documentation. Being able to use a formula on your data output unlocks ...
    • Task Template Connectors

      Task connectors effectively allow you to add connectors to generate emails, text messages, or REST calls based on events occurring on a Task if the assigned user changes, the status updates, or the Task becomes overdue. You define these connectors on ...
    • Built-In Templates

      Our platform offers a few built-in templates that can be used when exporting form-captured data in PDF. Even though you can fully customize your outputs using Word or Excel files, the following new and improved built-in templates may come in handy ...
    • Word Templates

      Our platform allows you to export Data in the layouts you want using Microsoft Word templates or Excel. If you already have Word documents that you have been printing out to use as data capture Forms, you can reuse them as data templates with a few ...
    • Excel Templates

      Our platform allows you to export Data in the layouts you want using Microsoft Excel templates. If you already have Excel documents that you have been printing out to use as data capture Forms, you can reuse them as data templates with a few minor ...