# How to get a clicked Data Viewer List Items title?

**URL:** <https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, data-viewer\
**Created:** [January 20, 2021, 12:01am UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265 "2021-01-20T00:01:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp72979rdrlbc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sp72979rdrlbc/32/94224_2.png) [@sp72979rdrlbc](https://community.thunkable.com/u/sp72979rdrlbc)\
**Post date:** [January 20, 2021, 12:01am UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265/1 "2021-01-20T00:01:37Z")

</div>

Am I getting the title of a clicked item in a Data viewer correctly?

Here’s what I’m doing:  
I’m trying to get the clicked items title and setting it to the text of a label “lable2”.

**Code Snippet:**

 ![Thunkable - Google Chrome 1_19_2021 4_00_32 PM (2)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d233f65d6e85f383beb57e66037fe41ea956b651.png)

Should this do the trick? Or is there something wrong with the way I’ve set it up? Right now it doesn’t work, it just sets the label to nothing. I’m not sure why.

**Edit: A simple yes it should work or no it shouldn’t work would do!**

---

<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 20, 2021, 3:04am UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265/2 "2021-01-20T03:04:50Z")

</div>

Yes and No.  
The first block is direct and should work OK.

The second block, you are using a block from `Any component` instead of directly assigning the text to Label2. Try  
`From Label2 set Text to app variable currentText` instead of `From Label Label2`

---

<div class="post-metadata">

**Author:** ![sp72979rdrlbc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sp72979rdrlbc/32/94224_2.png) [@sp72979rdrlbc](https://community.thunkable.com/u/sp72979rdrlbc)\
**Post date:** [January 20, 2021, 3:07am UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265/3 "2021-01-20T03:07:46Z")

</div>

Thanks! I’ll try that!

---

<div class="post-metadata">

**Author:** ![sp72979rdrlbc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sp72979rdrlbc/32/94224_2.png) [@sp72979rdrlbc](https://community.thunkable.com/u/sp72979rdrlbc)\
**Post date:** [January 20, 2021, 3:10am UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265/4 "2021-01-20T03:10:27Z")

</div>

@muneer It still doesn’t work? I’ve been trying to update thunkable to see if that will fix this problem, I cleared my cache but the problem still wasn’t fixed … I’ll try to remake the web viewer.

---

<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 20, 2021, 3:27am UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265/5 "2021-01-20T03:27:51Z")

</div>

Is there a reason you’re not just using the standard list viewer block? It has a green “item” block that contains the text of the item that was clicked.

---

<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 20, 2021, 5:35am UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265/6 "2021-01-20T05:35:20Z")

</div>

I tried a quick sample app and it worked. Share your project or create a project simulating this issue and share it for community members to look into it.

---

<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:30pm UTC](https://community.thunkable.com/t/how-to-get-a-clicked-data-viewer-list-items-title/1058265/7 "2024-11-08T13:30:38Z")

</div>


