...
Upload your template .docx file to the folder that we just created. The template should be based on %% character as the key for your variables, for example (%%Name%%). Those variables will be displayed on a form.
Then, go to the System Settings Settings → Attachments section → Choose "Document Generator Templates Folder"
Set the Path for the folder that we created in the first step. Choose the folder that contains the document templates.
Now, in the Attachments tab click on the 3 dots option and click to generate a document from template.
...