# Get property of object create object with fields

**URL:** https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844
**Category:** Questions about Thunkable X
**Tags:** list, json, object, clone
**Created:** [January 13, 2022, 3:55pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844 "2022-01-13T15:55:40Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [January 13, 2022, 3:55pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/1 "2022-01-13T15:55:40Z")

</div>

Can someone help me out here, what is the proper layout of blocks I should have here for this to work the way I’m hoping?

Normally I get stuff from Firebase DB but this seems to be a little different when creating the object in thunkable.

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

---

<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: [January 13, 2022, 7:15pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/2 "2022-01-13T19:15:29Z")

</div>

There is no benefit of the loop because it is just one object.

Can you explain what are you trying to achieve?

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [January 13, 2022, 7:28pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/3 "2022-01-13T19:28:17Z")

</div>

I want to clone 3 buttons, the buttons have different text and different background pictures

Then the 3 sliders, the first one has a certain max and the next 2 have a max of 100

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [January 13, 2022, 7:45pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/4 "2022-01-13T19:45:46Z")

</div>

More clearly I want to make 3 clones of 1 button\*

---

<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: [January 13, 2022, 7:54pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/5 "2022-01-13T19:54:29Z")

</div>

So you need to use `get properties of object` for the loop (if you insist on it) and remember that each property is a **list**.

Example, the first property would be `Link` and you should use the `list` block to get the values one after the other.

---

<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: [January 13, 2022, 7:55pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/6 "2022-01-13T19:55:51Z")

</div>

You created a single object containing lists. The right way to do this is to create a **list of objects** where each list item is an object with various properties for a single button. Then you loop through the list and read the object properties to set the button values.

I’m not at my computer but the first post here shows an example of what a list of objects looks like:

> [@Coding Challenge! ~ Sort a List of Objects](https://community.thunkable.com/t/coding-challenge-sort-a-list-of-objects/617337):
>
> I came across a pretty complex algorithm that I developed last year that I thought would be challenging and useful of others. So hence… Coding Challenge Sort a List of Objects by a property inside of the objects Remix The full code and project can be remixed here: [Thunkable](https://x.thunkable.com/copy/5802ab2995225d8257ea546a67973a67) Walkthrough Let’s first define a list of objects to be sorted We will sort on favorite \> number, so I wrote a helper function that takes in the object and then returns the favorite number Now let’s wr…

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [January 13, 2022, 8:59pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/7 "2022-01-13T20:59:24Z")

</div>

Thanks guys, here’s the final working result

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

---

<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: [April 14, 2022, 1:25pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/9 "2022-04-14T13:25:48Z")

</div>

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