# Organize controls in a section

> Group related controls in a section, enable scrolling for overflow, and protect the section with roles, a PIN or an NFC card.

Use a section to group controls that work together. You can color-code the group, move it around the position, or copy and paste the complete set of controls as one unit. For example, a section might contain the transport controls for a recorder or player, or a program cut bus for a video switcher.

<callout color="green" title="Tip">
  Sections can own variables that are available to every button inside them. This makes it easier to reuse a complete feature you have built.
</callout>

## Create the section

1. Open the position editor.
2. Click an empty canvas cell, then drag across the area the section should occupy.

![A single canvas cell selected, marked by a dashed bounding box](https://bitfocus.io/api/docs-media/file/select-first-cell-3.png?prefix=docs-media)

![The selection dragged across a block of cells, showing the hint “Right click to create…” inside it](https://bitfocus.io/api/docs-media/file/drag-to-size-section-3.png?prefix=docs-media)

3. Right-click the selection and choose **Section**, or press `S`.

![The right-click menu open on the selection, with Section highlighted under Create… among Button, Role Section, Shift Section, Folder Section, Popover, Router, Custom Router and Shared Section](https://bitfocus.io/api/docs-media/file/create-section-menu-1.png?prefix=docs-media)

![The finished 8 by 4 section on the canvas, selected with resize handles and a Section: Section 1 label above its top-left corner](https://bitfocus.io/api/docs-media/file/section-created-1.png?prefix=docs-media)

4. In the **Inspector**, on the **Design** tab, use **Location → Size** to adjust its dimensions when needed.

![The section inspector with the Design, Navigation, Variables, and Authentication tabs, showing Section Styling with Main Color and Location with X, Y, W and H on the Design tab](https://bitfocus.io/api/docs-media/file/section-inspector-1.png?prefix=docs-media)

5. Add buttons or nested sections inside it.
6. Select **Apply** to save the layout.

Choose one recognizable purpose for the section, such as playback, monitoring, audio, or routing. If the controls need alternate layers or navigable categories, you can use a Shift Section or Folder Section instead.

## Make additional controls reachable

When a section contains more controls than its visible area can show, its label bar shows **Items overflow** and an **Enable Scroll** button. Select **Enable Scroll**, or select the section, open the **Navigation** tab in the inspector, and set **Scroll** to **On**. Use **Scrollbar** to choose where its navigation control appears.

![A section sized 8 by 4 holding 32 numbered buttons, all visible at once](https://bitfocus.io/api/docs-media/file/section-full-of-buttons-1.png?prefix=docs-media)

![The same section resized to 8 by 2, showing buttons 1 to 16 and an Items overflow warning with an Enable Scroll button in the section's label bar](https://bitfocus.io/api/docs-media/file/section-overflow-warning-1.png?prefix=docs-media)

![The section with scrolling on, showing page 1/3 in its label bar and an up and down arrow in its last column, with buttons 1 to 14 in the remaining cells](https://bitfocus.io/api/docs-media/file/section-scroll-enabled-1.png?prefix=docs-media)

![The Navigation tab with Scroll set to On and the Scrollbar options Auto, hidden, left, and right](https://bitfocus.io/api/docs-media/file/section-navigation-tab.png?prefix=docs-media)

The section then scrolls independently from the rest of the position. This can keep a large set, such as camera presets, inside one logical area without expanding the entire canvas. Controls outside the visible area remain available by scrolling. On the StreamDeck Studio, the encoders can be used to scroll the sections, instead of the scroll-buttons. Click the encoder to move the cursor to different scrollable sections.

## Protect critical controls when needed

Section authentication protects controls inside a section. It is separate from signing into the Buttons Editor: a person can already be using the position and still need to unlock one protected section.

Select the section, open the **Authentication** tab, then choose the **Authentication Mode** that matches the requirement:

![The Authentication Mode list open, offering None, User role, User role + PIN, and Section PIN/NFC, each with a one-line description](https://bitfocus.io/api/docs-media/file/authentication-modes.png?prefix=docs-media)

- **None**: anyone using the position can access the section.
- **User role**: require one of the selected roles. This requires a Pro license.
- **User role + PIN**: require both an allowed role and the user's personal PIN. This requires a Pro license.
- **Section PIN/NFC**: use codes or NFC cards configured specifically for this section.

Authentication adds an unlock step during operation. Each section can use the mode that fits its intended workflow.

### Add a section code

1. Set **Authentication Mode** to **Section PIN/NFC**.
2. Under **Credentials**, select **Add Code Rule**.
3. Give the code a recognizable label and enter the required values.

![The Add Code Rule dialog with Label set to Operator, a hidden Code, and an optional Expires after time](https://bitfocus.io/api/docs-media/file/add-code-rule-dialog-1.png?prefix=docs-media)

4. Add more code rules only when different people or procedures need separate credentials.
5. Select **Apply**.

Once the section has a credential, the **Authentication** tab lists it under **Credentials** and shows **Code Input Layout**. Use **Code Input Layout** to fit the keypad to the surfaces assigned to the position. Keep section codes private; do not place them in screenshots, tickets, or public documentation.

![The Authentication tab set to Section PIN/NFC, with Code Input Layout set to Auto Size and Auto Hide, and an Operator code rule and a Supervisor card NFC rule under Credentials](https://bitfocus.io/api/docs-media/file/section-credentials.png?prefix=docs-media)

![A Stream Deck Studio with the locked section on the left half, showing a padlock button labelled CODE in place of its controls](https://bitfocus.io/api/docs-media/file/locked-section-1.png?prefix=docs-media)

![The keypad that replaces the section on the Stream Deck Studio for entering the code, with Close, digits 1 to 9 and 0, a padlock, a backspace and a confirm button](https://bitfocus.io/api/docs-media/file/code-entry-keypad-1.png?prefix=docs-media)

### Add an NFC card

A Stream Deck Studio can identify an NFC card for a protected section.

1. Set **Authentication Mode** to **Section PIN/NFC**.
2. Under **Credentials**, select **Add NFC Rule**.
3. Present the card or tag to the Stream Deck Studio reader when prompted.

![The Add NFC Rule dialog with Label set to Supervisor card, the tag that was read listed under Detected NFC Tags with the position it was read on, and the same tag moved to Assigned NFC Tags](https://bitfocus.io/api/docs-media/file/add-nfc-rule-dialog-1.png?prefix=docs-media)

4. Give it a label that identifies its intended use without exposing private information.
5. Select **Apply**.

![The locked section on the Stream Deck Studio showing both a CODE padlock button and an NFC symbol button, one for each unlock method](https://bitfocus.io/api/docs-media/file/locked-section-code-and-nfc-1.png?prefix=docs-media)

Repeated wrong codes are throttled per account: the first 3 wrong codes cost nothing, then each further wrong code makes the next check wait longer, starting at one second and doubling each time up to a maximum of 2 minutes. A correct code clears the history. Only codes that were actually checked and found wrong count, so a retry during an outage doesn't add to the wait. This protects against guessing without ever locking the account's owner out for longer than 2 minutes: it is not a lockout an administrator needs to reset.

## Where to go next

- Use a [Shift Section](/docs/buttons/v1.10/positions/shift-sections) for a clear secondary layer in the same area.
- Use a [Folder Section](/docs/buttons/v1.10/positions/folder-sections) for navigable categories.
- Use a [Popover](/docs/buttons/v1.10/positions/popover-sections) for temporary controls that should not occupy permanent space.
- Use a [Role Section](/docs/buttons/v1.10/positions/role-sections) when different roles should see entirely different contents in the same area.
