# 'any component'-- 'set all button disabled in a screen' not working

**URL:** <https://community.thunkable.com/t/any-component-set-all-button-disabled-in-a-screen-not-working/1553683>\
**Category:** Questions about Thunkable X\
**Created:** [October 10, 2021, 3:38am UTC](https://community.thunkable.com/t/any-component-set-all-button-disabled-in-a-screen-not-working/1553683 "2021-10-10T03:38:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cc\_mindchamp](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cc\_mindchamp](https://community.thunkable.com/u/cc_mindchamp)\
**Post date:** [October 10, 2021, 3:38am UTC](https://community.thunkable.com/t/any-component-set-all-button-disabled-in-a-screen-not-working/1553683/1 "2021-10-10T03:38:37Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/c/4c5f6c03e285e274d784a7fc54669ce5df27fae1.png)

Hi I am trying to build a simple quiz app and want to disable all buttons as soon as an option is clicked by the user, I want to do this by using set block in AnyComponent. Please help with what is wrong with the code, Q1 is the screen name

---

<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:** [October 10, 2021, 3:45am UTC](https://community.thunkable.com/t/any-component-set-all-button-disabled-in-a-screen-not-working/1553683/2 "2021-10-10T03:45:41Z")

</div>

You can’t use a list to set properties. It makes sense that you want to use the All Button block to set button properties but this is not possible.

Instead, you have to loop through the buttons in the All Button list. For starters, try just setting a button property by getting list item #1 from the All Button list/block and if that works, then see if you can get the loop to work.

---

<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:** [October 10, 2021, 3:54am UTC](https://community.thunkable.com/t/any-component-set-all-button-disabled-in-a-screen-not-working/1553683/3 "2021-10-10T03:54:45Z")

</div>

The first step looks like this:

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

And the second like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/4/143dc79ff7191d50a20cffa084c3961449820a17.png)

---

<div class="post-metadata">

**Author:** ![cc\_mindchamp](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cc\_mindchamp](https://community.thunkable.com/u/cc_mindchamp)\
**Post date:** [October 10, 2021, 5:58am UTC](https://community.thunkable.com/t/any-component-set-all-button-disabled-in-a-screen-not-working/1553683/4 "2021-10-10T05:58:21Z")

</div>

Thank you so much ! didnt realise it is to be used as a list. the above code is working well as per the requirement. Thanks again !

---

<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:14pm UTC](https://community.thunkable.com/t/any-component-set-all-button-disabled-in-a-screen-not-working/1553683/5 "2024-11-08T13:14:51Z")

</div>


