> For the complete documentation index, see [llms.txt](https://docs.theshoppad.com/infinite-options/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theshoppad.com/infinite-options/welcome/create-custom-options/switch.md).

# Switch

Add a Switch field in Infinite Options for a simple on or off choice, such as an optional gift wrapping add-on on a product page.

A Switch field is a single on/off toggle, useful for a simple yes/no add-on like gift wrapping.

## Step 1: Add a Switch Field

Open an existing Option Set or create a new one. Add a new option and select Switch as the input type.

## Step 2: Configure the Switch

A Switch has one value row, and that row's cart text is what's sent to the cart when the switch is on.

You can add a cost to the value using the price icon, and it displays on the product page.

<figure><img src="https://docs.theshoppad.com/infinite-options/assets/Switch%20option.jpeg" alt=""><figcaption></figcaption></figure>

## **Step 3: Style the Switch**

Under Styling, choose a Shape (Pill, Rounded, or Square), an Enabled color, a Disabled color, and optionally a Class name.

## Step 4: Save Your Option Set

Click Save to save your changes.

### Tips

* When a switch is off, nothing is submitted for that field.
* Conditional logic treats an off switch as empty, so you can build a rule that reacts to it being off, for example showing a different option only when the switch is off.
