# \[Solved\] How to change one button background colour at a time?

**URL:** <https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509>\
**Category:** Questions about Thunkable X\
**Tags:** solved, button, radio-button\
**Created:** [January 27, 2021, 2:41pm UTC](https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509 "2021-01-27T14:41:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadruzaini1998x8ra](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@ahmadruzaini1998x8ra](https://community.thunkable.com/u/ahmadruzaini1998x8ra)\
**Post date:** [January 27, 2021, 2:41pm UTC](https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509/1 "2021-01-27T14:41:51Z")

</div>

Hello, im newbie here and i have no idea how to do this. I want to make a program when I click button 1, button 1 background colour will change to blue but the others doesn’t change. If I click button 2 when button 1 already in blue colour, button 2 will change to blue colour and button 1 will revert to original colour. And same goes to the other button. Thank you.

![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ec5cbbe83cc9b15c3de3d0e167d230df6c26ba9f.jpeg)

---

<div class="post-metadata">

**Author:** ![fadialshiyab990o](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/fadialshiyab990o/32/61835_2.png) [@fadialshiyab990o](https://community.thunkable.com/u/fadialshiyab990o)\
**Post date:** [January 27, 2021, 3:05pm UTC](https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509/2 "2021-01-27T15:05:20Z")

</div>

Use block when button 1 is clicked to change background color of button 2 to any color you want.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 27, 2021, 4:21pm UTC](https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509/3 "2021-01-27T16:21:51Z")

</div>

@ahmadruzaini1998x8ra take a look at this video response to your question:

[![](https://img.youtube.com/vi/PrsNe0DrhTw/maxresdefault.jpg "Radio button logic in Thunkable (Community Question)") ](https://www.youtube.com/watch?v=PrsNe0DrhTw)

There are a couple of ways to do it, but I’d recommend going with the scalable approach.

The remix link is in the video description!

---

<div class="post-metadata">

**Author:** ![ahmadruzaini1998x8ra](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@ahmadruzaini1998x8ra](https://community.thunkable.com/u/ahmadruzaini1998x8ra)\
**Post date:** [January 27, 2021, 4:41pm UTC](https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509/5 "2021-01-27T16:41:13Z")

</div>

Thank you so muchhhhh. Solve my problem 😃

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 28, 2021, 3:51pm UTC](https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509/6 "2021-01-28T15:51:08Z")

</div>

No problem at all @ahmadruzaini1998x8ra - it was an interesting question.

There’s also a more in-depth tutorial over on the blog:

> **[Creating Radio Button Logic in Thunakble](https://domhnallohanlon.medium.com/creating-radio-button-logic-in-thunakble-bfc1599dcc2e)**
>
> Over in the Thunkable Community we had a question about illuminating a button when it’s pressed. One if the requirements here was that…

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/solved-how-to-change-one-button-background-colour-at-a-time/1071509/7 "2024-11-08T13:30:28Z")

</div>


