> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowforma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating a document template

> Create a customizable FlowForma Doc Gen template with form field placeholders so your flow can generate dynamic documents from submitted form data.

[Document templates](/product/document-generator/document-templates) let you create a fully customizable template for your documents, with placeholders for form fields, so you can generate dynamic documents from your FlowForma Forms data.

To create a document template:

1. Open the Flow Designer for the flow you want to generate documents for
2. Add a **[Generate document](/product/creating-flows/business-rules/business-rule-types/communications-rules/generate-document)** rule, and set **Build template using** to **Word Add-in (modern)**

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-1.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=537bfc0806853f0adb39d9c842cf11c8" alt="Generate document rule with Build template using set to Word Add-in (modern)" width="553" height="291" data-path="images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-1.png" />
3. Click the plus icon to add a new template

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-2.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=961e89b206f72fbff5a3e322d57f49f5" alt="Add a new template" width="550" height="316" data-path="images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-2.png" />
4. Provide a unique name for the template and click the tick icon to save it

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-3.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=d197da7105450f96a816ae060e552cd6" alt="Naming the template" width="356" height="63" data-path="images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-3.png" />
5. Once the template is created, click the pencil icon to open it in the Word desktop client

## Open the template in Word Online

1. Navigate to the **document templates** folder
2. Click the 3 dots by the document name
3. Click the 3 dots on the dialog
4. Select **Open in Word Online**

<img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-4.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=60a2da0ef45f3ae703da2559176e2716" alt="Open in Word Online" width="788" height="477" data-path="images/product/flowforma-doc-gen/creating-a-document-template/creating-a-document-template-4.png" />

<Warning>
  Adding repeating tables to your template is not supported in Word Online.
</Warning>
