---
title: "Toggles"
description: "Add toggle switches to your payment flows."
---

:::warning
Apple may reject apps that use a pre-selected trial toggle. A toggle set to "on" by default can be flagged as a manipulative dark pattern under App Store Review Guidelines — it implies user consent to a free trial without an explicit choice.

To avoid rejection, set the toggle to **off** by default and let users opt in to the trial themselves.
:::

A trial toggle is a binary switch that lets users choose between standard and trial-based products on a paywall. When the user changes its state, it can trigger an action — such as swapping product groups, updating variables, or showing and hiding elements — instantly.

To add a trial toggle, click **+** on the target screen and select **Trial toggle**.

Each trial toggle is a selectable element of the **Toggle** type. Each selectable element has a variable assigned to reflect its state — for example, a toggle named `trial` gets a `trial.is_selected` variable with a `True` or `False` value.

To make other elements depend on the toggle state, set a conditional [action](onboarding-actions) or [conditional visibility](onboarding-element-visibility) based on this variable.