# How to clone buttons and get info´s from this buttons

**URL:** <https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097>\
**Category:** Questions about Thunkable X\
**Created:** [July 29, 2019, 8:22pm UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097 "2019-07-29T20:22:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yukold](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/yukold/32/35122_2.png) [@Yukold](https://community.thunkable.com/u/Yukold)\
**Post date:** [July 29, 2019, 8:22pm UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/1 "2019-07-29T20:22:20Z")

</div>

Hi guys, here i came again, i have this project:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4b7be7c7f202ce096ad6ee36c9a8861ff9f47ba8.jpeg)

All columns have 3 buttons, first button are the background image, second the name and the last the rate from this object…

My problem now are when i click in any button mentioned above he need go to another screen, in this screen will have info´s about this object…  
Like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b46ba6ec5409d3881a54fb46e378ddc99ed91b5.jpeg)

So if you see in the first image, this object is the first on this list… How when i click to see infos about this object the app recognize the object where I clicked and bring the right information to this other screen?

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 29, 2019, 10:21pm UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/2 "2019-07-29T22:21:19Z")

</div>

Does screen1 tells the second screen that you clicked button #5, as opposed to #1.  
That is what each button needs to do: gather the relevant reference to put in some app variable “selected\_object”.

---

<div class="post-metadata">

**Author:** ![Yukold](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/yukold/32/35122_2.png) [@Yukold](https://community.thunkable.com/u/Yukold)\
**Post date:** [July 30, 2019, 1:37am UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/3 "2019-07-30T01:37:20Z")

</div>

how to do this? what´s blocks i need to tells to other screen?  
Have a image and a button on screen 1… how to click in this button on screen1 and go to screen2 with the same image from screen 1? because in screen 2 dont will have image, only the “component image”

[https://x.thunkable.com/projects/5d3f9d9855d0f67754cfb619/6bf029c3-de34-4df4-9b1e-3442e320069c/designer](https://x.thunkable.com/projects/5d3f9d9855d0f67754cfb619/6bf029c3-de34-4df4-9b1e-3442e320069c/designer)  
(little project to understand this)

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 30, 2019, 1:42am UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/4 "2019-07-30T01:42:00Z")

</div>

You save the pertinent data in “app” variables.  
App variables are accessible in all screens, so that is the easiest way to make them talk with one another.

---

<div class="post-metadata">

**Author:** ![Yukold](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/yukold/32/35122_2.png) [@Yukold](https://community.thunkable.com/u/Yukold)\
**Post date:** [July 30, 2019, 12:07pm UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/5 "2019-07-30T12:07:15Z")

</div>

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

I do this blocks, but in the first screen have an error, what i need change to do right?

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 30, 2019, 2:42pm UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/6 "2019-07-30T14:42:21Z")

</div>

You cannot initialize a variable to a dynamic value. Image1.Picture is not set to anything at the time of load, so you need to initialize app.Image1 to a static value, like “0”, or empty string " " etc.

Setting it to the value of Image1.Picture will have to be done in a procedure or event block.

---

<div class="post-metadata">

**Author:** ![Yukold](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/yukold/32/35122_2.png) [@Yukold](https://community.thunkable.com/u/Yukold)\
**Post date:** [July 31, 2019, 12:01am UTC](https://community.thunkable.com/t/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/7 "2019-07-31T00:01:52Z")

</div>

Finally can do it:  
here the blocks:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/4884c979323db829d5ae7a0f14c6b7b9140c757a.png)

---

<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/how-to-clone-buttons-and-get-info-s-from-this-buttons/161097/8 "2024-11-08T12:12:02Z")

</div>


