---
title: "Toggle Cloak"
canonical: "https://support.appfire.com/space/CT/1562247761/Toggle%20Cloak"
format: markdown
---
> Macro (aura-html)

This macro creates a button to toggle a cloaked section between being visible and hidden. This macro is usually used in coordination with a [Cloak](https://appfire.atlassian.net/wiki/spaces/CTFCSM/pages/1561987356) macro.

To customize how the cloaked text looks, you can use the [Composition Setup](https://appfire.atlassian.net/wiki/spaces/CTFCSM/pages/1562247546) to set various options such as toggle type, toggle zone, whether a cloak is opened or closed by default, and other settings.

> ⚠️ This macro is currently not available on cloud.
> ⚠️ 
> ⚠️ Macros will be migrated along with the page, and no data will be lost after migration. On Cloud, macros are hidden in view mode, but are visible in edit mode where they are marked as *Legacy*. For more details, refer to [https://appfire.atlassian.net/wiki/spaces/CTFCSM/pages/1561595043](https://appfire.atlassian.net/wiki/spaces/CTFCSM/pages/1561595043).

## Parameters

| **Name** | **Required** | **Migratable to cloud?** | **Default value** | **Description** |
| --- | --- | --- | --- | --- |
| **Cloak ID** | Yes | No | @auto | The unique ID of the cloaked section to toggle.   
If set to `@auto`, the macro will toggle the next Cloak with an **id **of `@auto`. |
| **exclusive** | Optional | No | false | If enabled, all other sections at the same level will be cloaked when this is shown. |

## Editor view

![image](media://56c8c80c-58be-45e4-8b4c-c9283fdad774)

# Related pages

> Macro (contentbylabel)