# Enable/Disable Vibration

**URL:** <https://community.thunkable.com/t/enable-disable-vibration/3440577>\
**Category:** Questions about Thunkable X\
**Created:** [December 29, 2024, 8:49pm UTC](https://community.thunkable.com/t/enable-disable-vibration/3440577 "2024-12-29T20:49:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hishamalamri2005k9jr](https://avatars.discourse-cdn.com/v4/letter/h/258eb7/32.png) [@hishamalamri2005k9jr](https://community.thunkable.com/u/hishamalamri2005k9jr)\
**Post date:** [December 29, 2024, 8:49pm UTC](https://community.thunkable.com/t/enable-disable-vibration/3440577/1 "2024-12-29T20:49:15Z")

</div>

Hi,  
I build a simple counter app. I add a switch to my app. I want when someone turn the switch on then every time they click on a button the phone vibrates, and then the switch is off, the phone does not vibrate. How can I do that?

---

<div class="post-metadata">

**Author:** ![martint](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/martint/32/96689_2.png) [@martint](https://community.thunkable.com/u/martint)\
**Post date:** [December 29, 2024, 8:59pm UTC](https://community.thunkable.com/t/enable-disable-vibration/3440577/2 "2024-12-29T20:59:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/a/8aaf773792b4e6f43dfa9fbb82d38554febe0f4b.png)

---

<div class="post-metadata">

**Author:** ![hishamalamri2005k9jr](https://avatars.discourse-cdn.com/v4/letter/h/258eb7/32.png) [@hishamalamri2005k9jr](https://community.thunkable.com/u/hishamalamri2005k9jr)\
**Post date:** [December 29, 2024, 8:59pm UTC](https://community.thunkable.com/t/enable-disable-vibration/3440577/3 "2024-12-29T20:59:52Z")

</div>

I found the solution. The fix is to add if statement

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 29, 2025, 9:00pm UTC](https://community.thunkable.com/t/enable-disable-vibration/3440577/4 "2025-03-29T21:00:05Z")

</div>

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