# 'Add object property to all list items'

**URL:** https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456
**Category:** Feedback
**Created:** [June 22, 2021, 6:30am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456 "2021-06-22T06:30:33Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 22, 2021, 6:30am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/1 "2021-06-22T06:30:33Z")

</div>

I use objects in my lists a lot. Whenever I want to add a new property to the objects, I have to add it by hand for all the items in the list. Instead, whenever I add a property, could Thunkable identify whether it is in a list and give a popup/alert to ask whether I want to add that property to all object-items in the list? That would really help me, and many others I’m sure.

---

<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: [June 22, 2021, 9:10am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/2 "2021-06-22T09:10:11Z")

</div>

Please my workaround [Thunkable](https://x.thunkable.com/projectPage/60d19c1a63e08d00125fe12e)

When the app starts, it creates 3 objects with name and gender as properties. The middle object has an extra property, age.

When the button is clicked, the property age is added to the other two objects.

I added a list viewer to see the properties of the first object before and after the change.

Hope this helps.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 22, 2021, 10:02am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/3 "2021-06-22T10:02:51Z")

</div>

Hi @muneer , thanks for the workaround. This is not exactly what I was talking about. I was talking about objects that I have in the code. For example, I want to store user information, so I initialize a variable with the object  
Name: “”  
Age: 0  
Password: “”

Then **while I am coding the app** , I realize I want to store gender too in my variable. So I want to be able to add properties for objects across my code, not within the app. Hope I explained it clearly.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 22, 2021, 10:16am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/4 "2021-06-22T10:16:14Z")

</div>

![Screenshot_20210622-153845_Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/f/dfbd6470bb18aed99794845243a60478118f6e2f.jpeg)  
Look at this: I have a list of objects with the properties name, width, height, and background. Now I realized I wanted to add a property ‘Visible’ to each item of this list, but now I have to add it to each item manually. I was asking the staff if they could add a feature which allows us to automatically add a property to all objects in a list. Hope I was clear this time. Thanks

---

<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: [June 22, 2021, 10:17am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/5 "2021-06-22T10:17:46Z")

</div>

OK, I got you. Apologize for the misunderstanding.  
You mean you want this property to be added to the variable across your coding blocks.  
I assumed a different thing.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 22, 2021, 10:19am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/6 "2021-06-22T10:19:11Z")

</div>

Please don’t apologize. Yes, that’s what I meant, see the example given above.

---

<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: [June 22, 2021, 10:28am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/7 "2021-06-22T10:28:39Z")

</div>

I went through a similar situation. I ended up saving my objects to Firebase and then used a similar block that I shared to add new properties.

You could do the same with stored variable, too.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 22, 2021, 10:30am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/8 "2021-06-22T10:30:34Z")

</div>

Thats a great approach! It’s not absolutely necessary at the moment, but the next time I’m in this situation, I’ll do it this way. Thanks!

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 22, 2021, 10:31am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/9 "2021-06-22T10:31:41Z")

</div>

@jane would it be possible to add this feature? No hurry, it just helps me thunk quicker.

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [June 23, 2021, 10:11am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/10 "2021-06-23T10:11:15Z")

</div>

You can make a feature request in our public Github repo. Find more info here: [Report Bugs and Submit Feature Requests in Our Public Github Repository](https://community.thunkable.com/t/report-bugs-and-submit-feature-requests-in-our-public-github-repository/31760)

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 23, 2021, 10:43am UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/11 "2021-06-23T10:43:01Z")

</div>

Thanks @jane, done 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:20pm UTC](https://community.thunkable.com/t/add-object-property-to-all-list-items/1357456/12 "2024-11-08T13:20:08Z")

</div>


