# How to insert the text of a selected data of a "data viewer list" in the text of a button?

**URL:** <https://community.thunkable.com/t/how-to-insert-the-text-of-a-selected-data-of-a-data-viewer-list-in-the-text-of-a-button/1426559>\
**Category:** Questions about Thunkable X\
**Tags:** button, data-viewer\
**Created:** [August 2, 2021, 3:11pm UTC](https://community.thunkable.com/t/how-to-insert-the-text-of-a-selected-data-of-a-data-viewer-list-in-the-text-of-a-button/1426559 "2021-08-02T15:11:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedescript0](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/fedescript0/32/112336_2.png) [@fedescript0](https://community.thunkable.com/u/fedescript0)\
**Post date:** [August 2, 2021, 3:11pm UTC](https://community.thunkable.com/t/how-to-insert-the-text-of-a-selected-data-of-a-data-viewer-list-in-the-text-of-a-button/1426559/1 "2021-08-02T15:11:38Z")

</div>

Good morning,  
I would like to know how to insert the title of a data from a “data viewer list” in the text of a button.  
I would like that when I click on a data the list disappears and a button appears with the title of the selected data as text and that when I click on this button the list reappears and the text in the button is deleted. What I’ve done so far:

 ![Senza titolo](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/a/bac0c9e0a51bd9495a263a4200adc666501d78bf.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [August 2, 2021, 3:15pm UTC](https://community.thunkable.com/t/how-to-insert-the-text-of-a-selected-data-of-a-data-viewer-list-in-the-text-of-a-button/1426559/2 "2021-08-02T15:15:08Z")

</div>

Use a set text block.  
Get the value from a row according to the row id and set the button it’s text.

---

<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:17pm UTC](https://community.thunkable.com/t/how-to-insert-the-text-of-a-selected-data-of-a-data-viewer-list-in-the-text-of-a-button/1426559/3 "2024-11-08T13:17:42Z")

</div>


