Skip to main content
How to create a word template

How to create Word templates available in the Generate Document action

Updated over a month ago

To use the Generate Document action, you first need to create a properly formatted Word template file. In the template, placeholders must be set up to receive data. These placeholders will be bound to variables within the workflow, enabling automatic filling of actual content when the document is generated. The steps are as follows:

Open Word Developer Tools

  1. Open a Word document and click on the File menu

  2. In the File Options window, select Options.

  3. Go to the Customize Ribbon tab, check the Developer checkbox, and click OK to save the settings.


Insert Placeholders in the Word Document

After completing the above steps, the Developer option will be added to the toolbar. You can then insert placeholders in the required positions of the document and select the appropriate placeholder type based on the content type:

Single line Text Placeholder:

For single line text, click Text Content Control in the Developer tab to insert a text placeholder.

Select the placeholder, go to Properties.

In the popup window, enter the placeholder name in the Title and Tag fields to associate it with the corresponding variable in the workflow designer.

Rich Text Placeholder: For multi-paragraph or formatted text, select Rich Text Content Control to insert a rich text placeholder, and set a title and tag in Properties.

Picture Placeholder

For images, choose Picture Content Control at the intended image location to insert a picture placeholder, and set a title and tag in Properties.

Table Placeholder:

  1. Insert a Table:

    • Go to the Insert tab, select Table, and insert a table with the required number of columns.

  2. Set Table Properties:

    • Right-click the table and select Table Properties.

    • Navigate to the Alt Text tab, and in the Title field, enter the variable name that corresponds to the sub-list in the workflow. This title will map the sub-list data to the table in the document.

    • Click OK to save the settings.

  3. Set Placeholders for Rows:

    • After adding the table headers, select the first empty row (where the sub-list data will populate).

    • Open the Developer tab, select Repeating Section Content Control.

    • Then click Properties, fill in the Title and Tag fields. Click OK to complete the setup.

  4. Insert Content Controls for Columns:

    • For each column, select the empty cell below the table header.

    • In the Developer tab, choose an appropriate content control for each column, such as:

      • For text values, use Plain Text Content Control.

      • For dates, use Date Picker Content Control.

      • For images, use Picture Content Control.

  5. Set Properties for Each Placeholder:

    • After inserting a placeholder in each column, click on the placeholder and open its Properties.

    • Fill in the Title and Tag fields (e.g., the field name such as "Name" or "Quantity"), and click OK to save.

    After completing these configurations, the Word template will be ready to bind with workflow variables, ensuring correct content is populated in the Generate Document action.

Did this answer your question?