# Is there toggle button widget / or how to create one?

**URL:** <https://community.palantir.com/t/is-there-toggle-button-widget-or-how-to-create-one/3316>\
**Category:** Ask the Community\
**Tags:** workshop\
**Created:** [March 27, 2025, 11:02am UTC](https://community.palantir.com/t/is-there-toggle-button-widget-or-how-to-create-one/3316 "2025-03-27T11:02:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdf](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/gdf/32/2149_2.png) [@gdf](https://community.palantir.com/u/gdf)\
**Post date:** [March 27, 2025, 11:02am UTC](https://community.palantir.com/t/is-there-toggle-button-widget-or-how-to-create-one/3316/1 "2025-03-27T11:02:03Z")

</div>

Hello, is there a mean in worksho to create a “3 states toggle button” ? (taking into account I do not have access/authorization to Developer Console)  
Like this:  
 ![image](https://canada1.discourse-cdn.com/palantir/original/2X/f/ff38d0d3641a99dc477f912b26f7511a3f90f864.png)

Maybe with custom widget (but I don’t know how) ?

Or with embedded Salte (but isn’t it too heavy if with laod 3, 4, 5 embedded slates) ?

---

<div class="post-metadata">

**Author:** ![JulioM](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/juliom/32/248_2.png) [@JulioM](https://community.palantir.com/u/JulioM)\
**Post date:** [March 27, 2025, 1:21pm UTC](https://community.palantir.com/t/is-there-toggle-button-widget-or-how-to-create-one/3316/2 "2025-03-27T13:21:54Z")

</div>

You could use a metric card with 3 metrics sharing the logic state for toggles. Conditional formatting would then allow you to show which state is on. You also can add interactions to each metric to run the events or actions that the 3 state button would have done.

eg:

 ![image](https://canada1.discourse-cdn.com/palantir/original/2X/d/d3a43d87a5df045d864e1dfbf65a17217da8cba5.png)

---

<div class="post-metadata">

**Author:** ![evanj](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@evanj](https://community.palantir.com/u/evanj)\
**Post date:** [March 27, 2025, 3:00pm UTC](https://community.palantir.com/t/is-there-toggle-button-widget-or-how-to-create-one/3316/3 "2025-03-27T15:00:40Z")

</div>

This is a bit hacky but you could also use a Tabs widget. The hacky part is that currently to get the selected state visually you’ll need to hook it up to tabs, but you don’t actually have to use that tabs section.

 ![Screenshot 2025-03-27 at 10.59.17 AM](https://canada1.discourse-cdn.com/palantir/original/2X/7/793aedfdb7c9c74ef709efc73cfc0ac591ce7647.jpeg)

We’re tracking a feature request internally to allow the tabs widget to show selected state based on setting a variable value, which would make this much better.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [April 10, 2025, 3:01pm UTC](https://community.palantir.com/t/is-there-toggle-button-widget-or-how-to-create-one/3316/4 "2025-04-10T15:01:32Z")

</div>

Closed on April 10, 2025, 3:01pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
