# Sections

The **Sections** feature in Activity Templates is a visual grouping tool that helps organize activity items and enforce specific requirements for operators. Sections allow you to group related items together, making the activity template more structured and user-friendly. Each section can be marked as either **required** or **optional**, which determines the level of enforcement for completing the fields within that section.

#### Overview

To define a section in an activity template, you will see two separate elements: one for the **Start Section** and one for the **End Section**. These elements must be placed outside the intended activity items for the section.

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-edb80bd7963926cbcbb37dc2a49ebe9e327a1d96%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**Example Structure:**

* **Start Section**: Denotes the beginning of the section and its properties.
* **End Section**: Denotes the end of the section.

The sections will visually group the activity items and control how they behave based on whether they are required or optional.

### Section Types: Required and Optional

Sections can be classified as **Required** or **Optional**. The difference between these types impacts how users interact with the fields in the section.

#### Section Behavior Table

| **Section’s Behavior** | **Required Field**                                   | **Optional Field** |
| ---------------------- | ---------------------------------------------------- | ------------------ |
| **Required Section**   | Must be filled                                       | Optional to fill   |
| **Optional Section**   | Must be filled if at least one other field is filled | Optional to fill   |

<figure><img src="https://352909507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrNT40XJFAFlAhUX8CcQS%2Fuploads%2Fgit-blob-6f61c322959c6aee4196bfafa3dd3c543b1c68e9%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### Notes for Existing Template Migration

* All existing activity template sections that are marked with **SECTION** will automatically have `required = true` to maintain the behavior from previous versions.
* If you want to modify the behavior of existing sections, you need to explicitly adjust the section settings to change their required or optional status.
