> For the complete documentation index, see [llms.txt](https://academy.any2info.com/any2info-academy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.any2info.com/any2info-academy/no-code-platform/app-studio/application-design/forms/supporting-footer-tools/merge-documents.md).

# Merge documents

**Category:** Forms

**Version:** 1.0

**Last updated:** February 2, 2026

**Author**: Any2Info

***

### Setup

The setup process of a Word Merge document is split into 2 distinct sections:

* **Word**, the creation of the word file & preparing the document
* **Reporting Studio**, adding the created document as a Word Merge document

#### Word Setup

For the Word setup part it is highly recommended, and assumed, that you have installed the [**Any2Info Word Add-in**](https://store.any2info.com/add-ins/word). As this makes creating the Word document considerably easier.

When opening a Word file a new **Any2Info** tab you first have to log in and chose a collection. You can do so by clicking on the **Settings** option.

<figure><img src="/files/MAy6vkYMiagSN7I51yyH" alt=""><figcaption></figcaption></figure>

When you have logged in you can pick a **Form Definition** to pick fields from. This will open a panel on the left side of the Word instance. It is also important that you enable the **Field Codes** option, this will be important in the next step.

<div align="left"><figure><img src="/files/dzTmrJ6sHoUPJg6yYQp8" alt=""><figcaption></figcaption></figure></div>

When the page is active and double clicking on a field will insert the **Field Code** of that field.

<div align="left"><figure><img src="/files/8NsMh2K8lKemkMT92hPI" alt=""><figcaption></figcaption></figure></div>

When using this Word file it means that fields value will be inserted at that position in the PDF export.

**Special Values**

A word merge file can support certain special values, mainly used in formatting.

<table data-header-hidden><thead><tr><th width="257"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Code</strong></td><td><strong>Value</strong></td><td><strong>Explenation</strong></td></tr><tr><td>{A2I:&#x3C;fieldName/headerName>}</td><td>-</td><td>Adds the value of the given field into the body</td></tr><tr><td>{A2I:&#x3C;fieldName/headerName> |Check{"true": , "false": }|}</td><td>Boolean (true/false)</td><td>Adds the given field to into the body. If the value is “true”, the “true” text is added. If “false” then the “false” text is added</td></tr><tr><td>{A2I:&#x3C;fieldName/headerName>|Date{"format":&#x3C;ISO_8601 format in quotes> }|}</td><td>Datepicker/Date/Datetime</td><td>Adds the given field to into the body. The exported value is formatted in the given format</td></tr><tr><td>{A2I:&#x3C;fieldName/headerName> |Image{"maxheight": , "maxwidth": }|}</td><td>Media/Image/Signature/ Image</td><td>Adds the given field to into the body. Resizes the given value to the specified Height and Width</td></tr><tr><td>{A2I:&#x3C;fieldName/headerName> |Markdown|}</td><td>Text</td><td>Adds the given field to into the body. Converts the given Markdown into HTML.</td></tr></tbody></table>

**Subforms**

**Subforms** require a little bit extra work. Simply adding the Field Code is not enough. A **SubForm** must be enclosed in a Table while the Tables alt-text must include the field code of the subform itself. A table’s alt-text can bee set by right clicking on the table and opening the Properties.

Below is an example of the above.

<div align="left"><figure><img src="/files/PTxmspYmyVMlZc9okIYP" alt=""><figcaption></figcaption></figure></div>

From here you can insert the field codes as normal.

<div align="left"><figure><img src="/files/3ACE3FixCQN4YE4A65oV" alt=""><figcaption></figcaption></figure></div>

### Reporting Studio

When you have a Word document that is satisfactory we can start by uploading it into the Reporting Studio.

When a **Form Definition** has been opened you can open the **Merge documents** tab at the bottom of the screen. Here we can upload the document.

<div align="left"><figure><img src="/files/MrSGyUuk74Z6l4yscRgG" alt=""><figcaption></figcaption></figure></div>

Below is how it should look like when the document is uploaded.

<div align="left"><figure><img src="/files/EPhNIEUFQD9RaNbevjQe" alt=""><figcaption></figcaption></figure></div>

In order to see the document in the **Viewer** as a possible export file we have to add it as a merge document. That can be done in the **Properties** section of the **Form Definition,** followed by the configuration of **Merge documents**.

While you’re at the Properties, make sure to enable “Share document”!

<div align="left"><figure><img src="/files/zf70QlQVxn40AI6ow8u5" alt=""><figcaption></figcaption></figure></div>

Simply drag your usable document into the Documents column and save the form definition.

***

### Usage

From here the usage of a chosen document is simple. Simply open a form message of the form you have setup the document for. Open the ellipsis menu (3 vertical dots) in the top right. Click **Share PDF/Word** and select your Document.

The form message below in combination with a very basic **Word Merge** document will result in the 3rd image from below.

<figure><img src="/files/fqyl62B1n3vTJPydAmnZ" alt=""><figcaption></figcaption></figure>

<div align="left"><figure><img src="/files/ZRyUDDVLB0WhghhHC2Cq" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/1fZOiL7fZZ9bQzVjbOzQ" alt=""><figcaption></figcaption></figure></div>

Note how the “2” and “Test” value are taken from a **SubForm** message.

### Usage - Advanced

Special values were previously mentioned, but do still need an example of usage.

For the values of this section, we will use the following form message:

<figure><img src="/files/hIJ7CXl4bC1EjVrVuahi" alt=""><figcaption></figcaption></figure>

The result of all the special values will be shown at the end of this section.

#### **Quotes**

To use the **Quotes** special code you need a **Boolean** (true/false) value. Most commonly this would be in the form of a **Checkbox**. Though other true/false options are also possible, like a **FormData** field with the value set to **IsTemplate**.

Below is how the **FieldCode c**ould look like:

<div align="left"><figure><img src="/files/60lWTEqkT9qKU5mrVVqc" alt=""><figcaption></figcaption></figure></div>

In order to use the Date Formatting the value must be any variant of a Date/DateTime. Which is why the **Date & Time** field will most commonly be used for this value. Though the **FormData** field also has a Date value in the Created option. A list of option can be found on [this tc39 page](https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-date-time-string-format).

Below is how the **FieldCode c**ould look like:

<div align="left"><figure><img src="/files/C0JGRcl7vYhxaB6qx4TC" alt=""><figcaption></figcaption></figure></div>

In order to use the **Image Dimensions** the value must be originating from an Image. This means that Fields like **Media**, **Image** and **Signature** can be used. **FormData** field can also be used if it is set to **Form Creator** and **Last Updater**.

The only dimensions that can be set are the **maxheight** and **maxwidth**. This means that dimensions cannot be directly set, only allowed to grow until the specified values.

Below is how the **FieldCode** could look like:

<div align="left"><figure><img src="/files/LPTcIkSXIUnXWomkW3YO" alt=""><figcaption></figcaption></figure></div>

#### **Markdown**

In order to use the **Markdown** option the value must be that of a **String**. This means a **Textbox Field** is mostly the target for this option. Though other fields are still options.

Below is how the **FieldCode** *should* look like, there are no other options other than “|Markdown|”:

<div align="left"><figure><img src="/files/diOX22eNzdwoMsTQKg3F" alt=""><figcaption></figcaption></figure></div>

#### **Result**

When exporting the aforementioned Form Message using all of the **FieldCodes** provided above the result will look as follows:

<figure><img src="/files/Oj5qlPsmDykpZW2pRoNX" alt=""><figcaption></figcaption></figure>

***

### Tips & Best Practices

* You can fit FieldCodes anywhere in a document, even Headers or Footers! Get creative!
* Give the Merge Documents proper names, if you have multiple it might get hectic knowing which to select!
* If you’re not using a Merge Document anymore, you can always remove it from the Merge Document list
* Properly name your fields in the Form Definition, otherwise it might become increasingly difficult to know what field is what.

### Changelog

| **Version** | **Date**         | **Change**                       |
| ----------- | ---------------- | -------------------------------- |
| 1.0         | February 2, 2026 | Initial document & documentation |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.any2info.com/any2info-academy/no-code-platform/app-studio/application-design/forms/supporting-footer-tools/merge-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
