> ## Documentation Index
> Fetch the complete documentation index at: https://docsautomator.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sections

> Add dynamic sections to render larger areas of your document conditionally

DocsAutomator enables rendering of entire document areas dynamically using Sections. These are defined by wrapping content with opening and closing tags that include a section name.

<Frame>
  <iframe width="100%" height="400" src="https://www.youtube.com/embed/W4DwD74jJ3k" title="Sections Overview" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</Frame>

## Syntax

**Opening tag:**

```
{{section_SOME_NAME}}
```

**Closing tag:**

```
{{/section_SOME_NAME}}
```

<Note>
  The closing tag requires a forward slash before `section`.
</Note>

## Example

```
{{section_premium_content}}

This entire area will only appear if the condition is met.

You can include any content here:
- Text
- Images
- Tables
- Line items

{{/section_premium_content}}
```

<Tip>
  Add color to section tags in your Google Doc for easier identification within templates.
</Tip>

## Configuration

Once sections are defined in the template, they appear in automation settings where conditional rendering rules can be applied.

## Available Conditions

Each rule is built from three parts: the **operator**, what you **compare against**, and (when a section has more than one rule) the **match mode**.

### Operators

Operators adapt to the field type, so a number field offers numeric comparisons, a date field offers chronological ones, and a checkbox offers true/false.

| Type     | Operators                                                          |
| -------- | ------------------------------------------------------------------ |
| Text     | equals, does not equal, contains, does not contain                 |
| Presence | exists, does not exist                                             |
| Number   | greater than, less than, greater than or equal, less than or equal |
| Date     | is after, is before, is on or after, is on or before               |
| Checkbox | is true, is false                                                  |

### Compare against

A condition no longer has to compare to a fixed value you type in. You can compare against:

| Source              | Description                                                                                                                                                                 |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A value             | A literal value you enter (the default)                                                                                                                                     |
| Another placeholder | The value of any other mapped placeholder                                                                                                                                   |
| A source field      | Any field from your connected data source, including fields not mapped to a placeholder. Inside line items you can target the row's own field or the parent record's field. |

This enables dynamic comparisons, for example showing a section only when `amount_paid` is less than `amount_due`, or when one date field is after another.

### Multiple conditions

Add more than one rule to a section and choose how they combine:

* **ALL**: the section shows only when every condition passes (AND)
* **ANY**: the section shows when at least one condition passes (OR)

<Note>
  Existing sections keep working unchanged. A single rule that compares a placeholder to a value behaves exactly as it did before.
</Note>

## E-Signature Fields in Sections

E-sign fields (`{{esign.signature_1}}`, `{{esign.date_1}}`, etc.) placed inside a conditional section are fully excluded from the signing workflow when the section is hidden:

* No signing session is created for fields in hidden sections
* No \$0.50 e-sign charge is billed
* If all e-sign fields are inside hidden sections, email delivery proceeds normally instead of being held for signing

This lets you use a single template for both e-sign and wet-ink workflows by placing each signature block in its own section and toggling visibility with a field value.

## Use Cases

<CardGroup cols={2}>
  <Card title="Premium Content" icon="crown">
    Show additional content for premium customers
  </Card>

  <Card title="Legal Clauses" icon="scale-balanced">
    Include specific contract clauses based on agreement type
  </Card>

  <Card title="Regional Content" icon="globe">
    Display region-specific information
  </Card>

  <Card title="E-Sign vs Wet Ink" icon="signature">
    Use one template for both signing methods
  </Card>
</CardGroup>

## Related Pages

<CardGroup cols={2}>
  <Card title="Conditional Show/Hide" icon="eye" href="/features/advanced-placeholder-options/conditional-show-hide">
    Show/hide individual placeholders
  </Card>

  <Card title="Conditional Paragraph Deletion" icon="trash" href="/features/advanced-placeholder-options/conditional-paragraph-row-deletion">
    Delete lines when empty
  </Card>
</CardGroup>
