# Can I reference components by name?

**URL:** <https://community.thunkable.com/t/can-i-reference-components-by-name/473846>\
**Category:** Questions about Thunkable X\
**Created:** [February 19, 2020, 5:07pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846 "2020-02-19T17:07:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [February 19, 2020, 5:07pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/1 "2020-02-19T17:07:45Z")

</div>

Hello everybody, I left the platform for a long time since it was too slow on my pc, but now I don’t know if they fixed it or is it cause I switched to linux, but it’s working better, so I’m back but I still see that something that i need to automatize my app is missing, the possibility to use the actual name of the component i created.

I mean: I have many buttons that basically do the same thing, but every button changes certain variables, like, if i press the margherita, the price goes to 1, if i press another pizza it goes to 1.2 etc, to fully automate it letting me use the clone function in the proper way i need to ‘access’ the component name when it is cloned, or just when i use the any button block.

E.g. if my label is called label\_price\_of\_margherita, if I can access to that value I can automatically assign a value to the text that it has to show.  
[https://docs.thunkable.com/any-component-blocks#the-component-item-block-1](https://docs.thunkable.com/any-component-blocks#the-component-item-block-1)

I hope I was clear enough on what I’d like to see in the platform

---

<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:** [February 19, 2020, 5:33pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/2 "2020-02-19T17:33:49Z")

</div>

Hey @maxb, welcome back!

Yep, we made an update and everything is much faster for larger projects now.

Moving you question out to its own topic so it get a little more love from the community!

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [February 19, 2020, 5:40pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/3 "2020-02-19T17:40:00Z")

</div>

Good, I remember that @Mark told me they were working on it or just thinking about it.

I feel that this would be very powerful to automatize every app and extremely reduce the number of blocks.

---

<div class="post-metadata">

**Author:** ![paulmw](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@paulmw](https://community.thunkable.com/u/paulmw)\
**Post date:** [February 19, 2020, 5:49pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/4 "2020-02-19T17:49:30Z")

</div>

There is still a feature in development that will solve this particular problem, but unfortunately it’s not out yet. I’m guessing it’s 4-6 weeks out, but schedules frequently change, so it might take longer…

We’ll create a way for you to add a new property to every button - which should allow you to distinguish between your components and consolidate your code. We’ll have more info when it gets released.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [February 19, 2020, 5:53pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/5 "2020-02-19T17:53:00Z")

</div>

Yes, that’s what Mark was talking about, but I didn’t think it would take so long 😅, it was almost a year ago 😭

However, better late than never, guess I’ll have to come back later 😄

---

<div class="post-metadata">

**Author:** ![Michael\_Rogulla](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Rogulla](https://community.thunkable.com/u/Michael_Rogulla)\
**Post date:** [February 19, 2020, 6:28pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/6 "2020-02-19T18:28:17Z")

</div>

Hi @maxb,

maybe this discussion on github helps you? It is about how to add an index to a cloned component. That way, you can click on “pizza”-button or “margherita”-button, get the index and assign an appropriate price:

> <https://github.com/thunkable/thunkable-issues/issues/295>
>
> I generated buttons with "Any component -\> clone". Let's say I have created 4 buttons. When I click on one of...

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [February 21, 2020, 7:10pm UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/8 "2020-02-21T19:10:36Z")

</div>

Hey Michael thank you!  
it was useful because it gave me the idea to use lists and now it’s working pretty fine!

---

<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, 11:40am UTC](https://community.thunkable.com/t/can-i-reference-components-by-name/473846/9 "2024-11-08T11:40:53Z")

</div>


