---
title: "Toggle booleans with switches | Phase Changelog"
description: "The Console now automatically detects boolean values and adds a toggle switch to easily flip between 'true' and 'false' states."
url: https://phase.dev/changelog/boolean-toggles/
---

[Changelog](https://phase.dev/changelog/)

2024.03.27

# Toggle booleans with switches

The Console now automatically detects boolean values and adds a toggle switch to easily flip between 'true' and 'false' states.

[console](https://phase.dev/changelog/tag/console/)[ux](https://phase.dev/changelog/tag/ux/)[dx](https://phase.dev/changelog/tag/dx/)

![boolean toggles](https://phase.dev/assets/images/changelog/boolean-toggles/boolean-toggles.webp)

The Console now automatically detects boolean values and adds a toggle switch to easily flip between `true` and `false` states.

* * *

## Making environment variables suck less

We are constantly exploring new ways to improve the developer experience for managing application secrets and configuration. A common pattern in managing application configuration is using a `True` or `False` value to flip a setting on or off. This setting could be something like a debug mode, test mode, or a CI setting to control how a pipeline is executed.

With the [latest release](https://github.com/phasehq/console/releases/tag/v2.16.0) of the Phase Console, you can now flip these values with a single click, instead of having to type them out.

Here it is in action:

## How it works

When you create a new Secret in the Phase Console, it automatically detects if the value is a boolean. Currently we support UPPERCASE, lowercase and Title Case versions of either `true` or `false` as a valid boolean, so any of the following values:

-   true
-   True
-   TRUE
-   false
-   False
-   FALSE

If the value of a secret matches any of these, the Console displays a toggle switch next to the input field for easy on-off flipping. Flipping a value will preserve its case, so an UPPERCASE `TRUE` will flip to `FALSE`, lowercase `true` will flip to `false` and so on.

* * *

The new boolean toggles are live on [Phase Cloud](https://console.phase.dev) and [v2.16.0](https://github.com/phasehq/console/releases/tag/v2.16.0) for self-hosted users.

Reach out on [Slack](https://slack.phase.dev) or [GitHub](https://github.com/phasehq) for any questions or feedback on this release!

RoadmapCommunity-driven

Request a feature

We build features based on community requests and feedback. Looking for a specific feature or have a use-case in mind? Reach out to us.

[Feature request](https://github.com/phasehq/console/issues/new?template=feature_request.md)

DeploymentSelf-hosted / Cloud

Get started

## Keep your secrets

Self-host or start on fully managed Cloud in under a minute.

Self-hosted

Run Phase on your own infrastructure. Free and open source.

AI agent deployment skill

[![Docker Compose logo](https://phase.dev/assets/images/docker.svg)](https://docs.phase.dev/self-hosting/docker-compose)[![Kubernetes logo](https://phase.dev/assets/images/kubernetes.svg)](https://docs.phase.dev/self-hosting/kubernetes)[![AWS logo](https://phase.dev/assets/images/aws.svg)](https://docs.phase.dev/self-hosting/aws-eks)[![GCP logo](https://phase.dev/assets/images/gcp.svg)](https://docs.phase.dev/self-hosting/gcp)[![Azure logo](https://phase.dev/assets/images/azure.svg)](https://docs.phase.dev/self-hosting/azure)[![Railway logo](https://phase.dev/assets/images/railway.svg)](https://docs.phase.dev/self-hosting/railway)[![Raspberry Pi logo](https://phase.dev/assets/images/raspberry.svg)](https://docs.phase.dev/self-hosting/raspberrypi)

[Self-hosting guide](https://docs.phase.dev/self-hosting)

Cloud

Fully managed. From signup to your first secret in 60 seconds.

Sign up with

[Google](https://console.phase.dev/login?provider=google)[GitHub](https://console.phase.dev/login?provider=github)[GitLab](https://console.phase.dev/login?provider=gitlab)
