Getting started

  • Introduction
  • Create a new process
  • Configure template
  • Configure output settings
  • Add deliveries
  • Start process
  • Processes examples
  • Training videos

Integrations

  • Power Automate
  • Power Apps
  • Airtable
  • Zapier
  • Make
  • REST API
  • 2000+ integrations

Templates syntax

  • Word DOCX templates (Modern)
  • Word DOCX templates (Classic)
    • How it works
    • Tokens
    • Lists
    • Tables
    • Table of contents
    • Links and endnotes
    • Loops and nesting
    • Charts
    • Conditionally hide content
    • Pictures
    • Automatic numbering
    • QR codes
    • Barcodes
    • Aliases
    • Operations
    • Value formatters
    • Value properties
    • Update file metadata
    • Demos
  • Excel XLSX templates
  • PowerPoint PPTX templates
  • Fillable PDF
  • HTML templates

Forms

  • Auto-generated forms
  • Rich custom forms

General

  • Licensing details
  • Release notes
  • Architecture
  • Data protection and security
  • Data center location
  • Service level agreement
  • Status page

Account management

  • API Keys
  • Reports
  • Recycle bin
  • Subscriptions
  • Account settings
  • Audit log
  • Manage team

PDF processing and more

  • Convert DOCX, XLSX, PPTX, HTML to PDF
  • Convert DOC, XLS, PPT to DOCX, XLSX, PPTX
  • Extract data from fillable PDF forms
  • Protect PDF files
  • Add watermarks
  • Split PDF
  • Merge PDF
  • Compress PDF
  • Read CSV files
  • Convert CSV files to Excel
  • Extract data using regular expressions
  • Fill merge fields in DOCX document
  • Value properties in DOCX, XLSX and PPTX templates
  • Operations in DOCX, XLSX and PPTX templates
Documentation › Word DOCX templates (Classic) › Links and endnotes

Links and endnotes

Note

This article describes how to add dynamic hyperlinks and endnotes in the Classic DOCX templating engine, which is obsolete and lacks modern features. We suggest using the Modern templating engine instead. Click here for updated instructions.

Content

  • Links

  • Endnotes

Create DOCX document from template action allows you to add dynamic hyperlinks to a location on the web, as well as endnotes and footnotes.

You can download the source document and the result document for the example described below in links and endnotes demo.

Links

Let us assume we have a list of online learning resources.

JSON representation of the object:

[
    {
        "name": "The Open University",
        "description": "Distance and online courses. Qualifications range from certificates, diplomas and short courses to undergraduate and postgraduate degrees.",
        "linkName": "Go to the site",
        "linkURL": "http://www.openuniversity.edu/courses"
    },
    {
        "name": "Coursera",
        "description": "Online courses from top universities like Yale, Michigan, Stanford, and leading companies like Google and IBM.",
        "linkName": "Go to the site",
        "linkURL": "https://plato.stanford.edu/"
    },
    {
        "name": "edX",
        "description": "Flexible learning on your schedule. Access more than 1900 online courses from 100+ leading institutions including Harvard, MIT, Microsoft, and more.",
        "linkName": "Go to the site",
        "linkURL": "https://www.edx.org/"
    }
]

Now, let us take a look at the source template for this structure:

External links template

We designed a table with a header and just one row that contains our tags. The templating engine is smart enough to understand what content needs to be duplicated.

To refer properties of the objects we just used the names of the properties:

{{name}}, {{description}}, {{linkName}}, {{linkURL}}.

To create a hyperlink to a location on the web we select the text that we want to display as a hyperlink, in the Insert tab in MS Word, click Link, navigate to the Existing File or Web Page tab and add a tag into the Address field:

Insert hyperlink: URL

Endnotes

We have also added endnotes to our template. To do that please click where you want to add an endnote, click References in the top ribbon and Insert Endnote.

Insert endnote

Endnotes and footnotes maintain the context of their definition. This allows the template engine to replace multiple tags which belong to the same context.

You can see the result of rendering below. The templating engine created web hyperlinks and endnotes in the document:

External links result
Previous
Table of contents
Next
Loops and nesting in DOCX templates