# Renaming isn't... real? Problem with any component blocks

**URL:** <https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234>\
**Category:** Questions about Thunkable X\
**Tags:** design\
**Created:** [July 17, 2019, 1:46pm UTC](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234 "2019-07-17T13:46:13Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 19, 2019, 12:49pm UTC](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234/41 "2019-07-19T12:49:26Z")

</div>

As a temporary solution, you can try the following trick: assign the button name to the TextColor or BackgroundColor or BackgroundPicture property, and when you click on the buttons, use the values ​​of these properties as the names of the buttons.

---

<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:** [July 19, 2019, 1:54pm UTC](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234/42 "2019-07-19T13:54:35Z")

</div>

But when the user clicks the button called “Jhon”, how does the app know that the button pressed was Jhon and not Jane?

What I need is that I will insert the button’s name in a list that the user will see, so it has to be THAT EXACT name, I think I can create a workaround and have the same result but I also think that it could be done by the developers with not too much effort, to let me use the button’s name I mean, or at least I hope.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [July 19, 2019, 4:11pm UTC](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234/43 "2019-07-19T16:11:10Z")

</div>

> [@maxb](#):
>
> Cause I intended to set the names of the buttons to specific references, like “Button\_Main\_Pizza”, “Button\_Second\_Pizza”… “Button\_Main\_Hamburger”, “Button\_Second\_Hamburger”, I have many button that have to do the same thing but with different variables and the results have to be displayed on different design elements, so I was naming all the design elements and variables with recurring elements that the system would look for when deciding what to do

@maxb I think I understand what you’re trying to do and it makes sense to me. There are a couple of upcoming features that should help you. One is a block which would return the name of a component. That would, presumably, let you do exactly what you described. The other is the ability to add your own properties to a component, so you could, for instance, add a food property on your buttons which could have a value of “pizza” or “hamburger”. That would allow you to name your buttons whatever you like but still distinguish them. It would also allow you to distinguish buttons (or other components) that you create dynamically via the `Create` or `Clone` blocks.

What @actech was describing was a way to work around the fact that the features I mentioned don’t exist yet. For example, if you set the `TextColor` property of your buttons to have the same value as your button’s name, you can use that property to distinguish your buttons. It works because invalid `TextColor` values don’t have any effect on the color but they are saved with the component. If you happen to want to actually use the `TextColor` property to change your button’s text color then you can use the `BackgroundColor` or `BackgroundPicture` property instead. Note that I can’t guarantee that invalid values will always work this way (e.g. we might decide that they are an error), so I would suggest that if you use this workaround that you create a function (called, say, “GetButtonName”) which takes a button component and returns the button’s name. For now, that function would return the value of the `TextColor` property of the button, but you could change it to return the actual name once that block is available.

Hope this helps.

-Mark

---

<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:** [July 22, 2019, 4:10pm UTC](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234/45 "2019-07-22T16:10:50Z")

</div>

Thanks for the answer and everything,

could you tell me if the name component is gonna follow soon or it’s gonna take a while?

I ask so that I can decide if I should just wait for it or go back or use the workaround.

Thanks for the answer if there will be ^^

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [July 22, 2019, 5:00pm UTC](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234/46 "2019-07-22T17:00:06Z")

</div>

> [@maxb](#):
>
> could you tell me if the name component is gonna follow soon or it’s gonna take a while?
> 
> I ask so that I can decide if I should just wait for it or go back or use the workaround.

I think it’s going to take a little while.

-Mark

---

<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, 12:12pm UTC](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234/47 "2024-11-08T12:12:07Z")

</div>



[Previous page](https://community.thunkable.com/t/renaming-isnt-real-problem-with-any-component-blocks/146234.md?page=2)
