> For the complete documentation index, see [llms.txt](https://support.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.docstudio.com/user/template-builder/template-dynamic-fields/template-dynamic-fields-overview.md).

# Template Dynamic Fields Overview

This document explains what template dynamic fields are and how to add them.

{% hint style="info" %}
Dynamic fields are template placeholders, they collect or insert data during processing.

See the [Glossary](https://support.docstudio.com/glossary/glossary.md) for DocStudio term definitions.
{% endhint %}

### Text Cursor Method (Structured Documents Only)

This method works only for **structured documents**.

1. Click the exact spot in the document where you want to place the field.
2. When the blinking text cursor appears, open the **Fields** tab in the template editor menu.
3. Click the field you want to insert.
4. The field will be placed exactly where the cursor is.

### Drag & Drop Method (All Document Types)

This method works with all documents, including PDFs.

1. In the **Fields** tab, press and hold the mouse button on a field.
2. Drag it to the desired location in the document.
3. Release the mouse button to drop it.

While dragging, a preview of the field will follow your pointer.

{% hint style="info" %}

* in **PDF documents**, the field is placed exactly where the preview shows
* in **structured documents**, placement is approximate and snaps to the nearest valid cursor position
  {% endhint %}

### Sticky Fields Method (Best for PDFs and Touch Devices)

This method is similar to drag & drop, but uses two clicks. It does not require dragging.

It works best for PDFs and touchscreen devices.

1. Click once on a field in the **Fields** tab. (**Do not hold the mouse button**)\
   The field preview will “**stick**” to your pointer.
2. Move the pointer to the place where you want the field.
3. Click again to place it.

{% hint style="info" %}

* in structured documents, placement can still be approximate
* if the text cursor is visible, the field may be placed at the cursor
  {% endhint %}

### Cancel placing a field

To cancel field placement:

* press **ESC**, **Backspace**, or **Delete**
* click anywhere outside the template area

This will remove the field preview from your pointer.

### Edit or delete a field

To **edit** a field:

1. Click the field you want to edit, the field settings menu opens.
2. Adjust field-specific options.
3. Click the <img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2Fc68WqWTYVztbsx4LcYzz%2Fimage.png?alt=media&amp;token=07e983eb-2332-4047-8a86-935fc26ad2b2" alt="" data-size="line"> button.

To **delete** a field:

1. Click the field you want to edit
2. In the field settings panel, click the <img src="https://2962383972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoqUiFHjwtCCGSaEDqbXb%2Fuploads%2FfebhQq35wpacfoMSf6jr%2Fimage.png?alt=media&amp;token=23d4ad3d-a509-45c5-b93b-d50c04484403" alt="" data-size="line"> button.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.docstudio.com/user/template-builder/template-dynamic-fields/template-dynamic-fields-overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
