# \[Solved\] Switch "on Value Change" event fails

**URL:** https://community.thunkable.com/t/solved-switch-on-value-change-event-fails/3047767
**Category:** Questions about Thunkable X
**Tags:** switch, any-component
**Created:** [June 8, 2024, 5:08am UTC](https://community.thunkable.com/t/solved-switch-on-value-change-event-fails/3047767 "2024-06-08T05:08:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [June 8, 2024, 5:08am UTC](https://community.thunkable.com/t/solved-switch-on-value-change-event-fails/3047767/1 "2024-06-08T05:08:54Z")

</div>

In [this project](https://x.thunkable.com/copy/673779839a9a59a6c712aa2b5dab8ec5) (see first screen), I cloned a container with a switch. When I change one of the switch’s values, I expect it to display the new value in the labels. But it doesn’t.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/9/59e01a2722b71195e1f19d98594413194d5a0cd9.png)

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [June 11, 2024, 6:52pm UTC](https://community.thunkable.com/t/solved-switch-on-value-change-event-fails/3047767/2 "2024-06-11T18:52:43Z")

</div>

Hi @tatiang, thanks for flagging this. I’ll have to take a closer look and see why the values are not moving over with the component block. Hang tight and we’ll work on this asap.

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [June 13, 2024, 2:24pm UTC](https://community.thunkable.com/t/solved-switch-on-value-change-event-fails/3047767/3 "2024-06-13T14:24:00Z")

</div>

@tatiang Thanks for your patience. No bug here, just a small syntax error in the blocks–the UI component is a slider, but the blocks are referring to a switch, which is not being used in your project. In this case, too, you’ll probably want the slider as the switch component can only show true/false values.

 ![Screenshot 2024-06-13 at 10.23.50 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aa154cb383fbf8c449a7760af981ad76f13e37ff.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [June 13, 2024, 3:13pm UTC](https://community.thunkable.com/t/solved-switch-on-value-change-event-fails/3047767/4 "2024-06-13T15:13:24Z")

</div>

Oh wow… that’s what I get for rushing. Thank you!

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [June 13, 2024, 3:42pm UTC](https://community.thunkable.com/t/solved-switch-on-value-change-event-fails/3047767/5 "2024-06-13T15:42:46Z")

</div>


