# Components in a list for use with all components

**URL:** https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721
**Category:** Questions about Thunkable X
**Created:** [February 3, 2022, 1:21pm UTC](https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721 "2022-02-03T13:21:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![captainzee9999jf](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@captainzee9999jf](https://community.thunkable.com/u/captainzee9999jf)
#### Post date: [February 3, 2022, 1:21pm UTC](https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721/1 "2022-02-03T13:21:13Z")

</div>

Hi all

I have come over from AI2 to this hopefully better system but have an issue with the using ‘any component’

I have made a list of button components then using the ‘for each item’ loop i want to change the text of each button in the list from some json data

the way i have shown doesent seem to work and the text for house4 button does not show as 3, it shows as some long alphanumeric number.

if i change my ‘house’ list to just numbers and create the component list inside the ‘set button in list’ section. it all works fine and house4 text becomes 3

to me it appears that you cannot put componants into a list which I could do in AI2

any help would be appreciated or if this is a bug

 ![athunkablelist](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/d/bdc55b5ff626061e59ef8759eddd064311b502e0.jpeg)

thanks

Zee

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [February 3, 2022, 2:16pm UTC](https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721/2 "2022-02-03T14:16:30Z")

</div>

You can but a adding a ‘house1’ Will return it’s ID wich is a number and not it’s name.

You should Just Place numbers in the list.

-luke

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 3, 2022, 3:40pm UTC](https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721/3 "2022-02-03T15:40:23Z")

</div>

The “j” will give you the entry in the list so you should say  
set button j’s text to …

The other issue is the `get property` with the join text, you are actually saying **house1house** , **house2house** , **house3house**. Is this the key name in the JSON?

---

<div class="post-metadata">

### Author: ![captainzee9999jf](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@captainzee9999jf](https://community.thunkable.com/u/captainzee9999jf)
#### Post date: [February 3, 2022, 8:44pm UTC](https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721/4 "2022-02-03T20:44:57Z")

</div>

thanks guys.

j does return the contents of each item in the list, not the ID so either solution will work but have gone to - change button ‘j’ text and added a k=k+1 for the json ID

thanks for the quick replies

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [February 4, 2022, 7:23am UTC](https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721/5 "2022-02-04T07:23:12Z")

</div>

Glad you solved your issue

---

<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: [May 5, 2022, 7:23am UTC](https://community.thunkable.com/t/components-in-a-list-for-use-with-all-components/1713721/6 "2022-05-05T07:23:48Z")

</div>

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