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)
    • How it works
    • Tokens
    • Lists
    • Tables
    • Table of contents
    • Links and endnotes
    • Loops and nesting
    • Conditionally hide content
    • Pictures
    • Automatic numbering
    • QR codes
    • Barcodes
    • Calculated properties
    • Value functions
    • Object operations
    • Logical operations
    • Update file metadata
  • Word DOCX templates (Classic)
  • 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 (Modern) › Links and endnotes

Links and endnotes

Content

  • Links

  • Endnotes

In Word DOCX document templates, you can add dynamic hyperlinks and endnotes. This article will provide examples demonstrating how to create dynamic hyperlinks pointing to web locations, as well as how to add endnotes and footnotes.

You can download the template and the result document for the examples described below in links and endnotes demo.

Links

Suppose you have a list of online learning resources, and you want to automatically create hyperlinks for each.

Here’s the structure of our JSON:

[
    {
        "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/"
    }
]

We created a simple template with a table that includes a header and a row containing tokens from our JSON structure.

External links template

To reference the properties of the objects, we simply used their names:

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

To create a hyperlink, we’ve modified the {{linkURL}} token by adding the #link operation as follows:

{{#link linkURL linkName}}

The linkName property serves as the display name for the hyperlink.

Here’s the final result:

Insert hyperlink: URL

For more details about the #link operation, click here.

Endnotes

To add an endnote, click where you want it in your template, go to the References tab in the top ribbon, and select Insert Endnote.

Insert endnote

Endnotes and footnotes preserve the context of their definitions, enabling the template engine to replace multiple tags that belong to the same context.

Here’s the result:

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