# How to get value of label inside row on button click?

**URL:** <https://community.thunkable.com/t/how-to-get-value-of-label-inside-row-on-button-click/2539865>\
**Category:** Questions about Thunkable X\
**Tags:** design, beginner, help\
**Created:** [August 10, 2023, 6:07pm UTC](https://community.thunkable.com/t/how-to-get-value-of-label-inside-row-on-button-click/2539865 "2023-08-10T18:07:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![codewithsimar](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codewithsimar/32/148019_2.png) [@codewithsimar](https://community.thunkable.com/u/codewithsimar)\
**Post date:** [August 10, 2023, 6:07pm UTC](https://community.thunkable.com/t/how-to-get-value-of-label-inside-row-on-button-click/2539865/1 "2023-08-10T18:07:17Z")

</div>

Dear All,

I have created something like this. **see the outpot**

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

**blocks**

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/2/8269fd66d339dcdf1536d68eb0ab5f388424c28f.png)

**I want to get the value of label on the click of button.**

Please let me know how can i achieve it.

Thanks In Advance!

---

<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:** [August 10, 2023, 7:09pm UTC](https://community.thunkable.com/t/how-to-get-value-of-label-inside-row-on-button-click/2539865/2 "2023-08-10T19:09:14Z")

</div>

Can you share a link to the project? The method for doing this will depend on how you have components arranged in the component tree.

---

<div class="post-metadata">

**Author:** ![codewithsimar](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codewithsimar/32/148019_2.png) [@codewithsimar](https://community.thunkable.com/u/codewithsimar)\
**Post date:** [August 11, 2023, 8:36am UTC](https://community.thunkable.com/t/how-to-get-value-of-label-inside-row-on-button-click/2539865/3 "2023-08-11T08:36:09Z")

</div>

[https://x.thunkable.com/copy/5e162e4563742d0ad3da3313fa3aadf6](https://x.thunkable.com/copy/5e162e4563742d0ad3da3313fa3aadf6)

Here you go.

I want to know this because i will create a custom list depending on api data and i would need to get the id when user click on that card so i can call other data and show to user. 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:** [September 3, 2023, 6:35pm UTC](https://community.thunkable.com/t/how-to-get-value-of-label-inside-row-on-button-click/2539865/4 "2023-09-03T18:35:37Z")

</div>

It would be easier to create a template and keep it hidden then you can add number of copies from the template into a container (column).

This way you can know the text in the label corresponding to the button pressed because both are in the same copy of the template which is indexed in the container using the **Any Component** blocks.

---

<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:** [December 2, 2023, 6:36pm UTC](https://community.thunkable.com/t/how-to-get-value-of-label-inside-row-on-button-click/2539865/5 "2023-12-02T18:36:12Z")

</div>

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