# Any Button Click

**URL:** <https://community.thunkable.com/t/any-button-click/593891>\
**Category:** Questions about Thunkable X\
**Created:** [June 4, 2020, 9:29pm UTC](https://community.thunkable.com/t/any-button-click/593891 "2020-06-04T21:29:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 4, 2020, 9:29pm UTC](https://community.thunkable.com/t/any-button-click/593891/1 "2020-06-04T21:29:25Z")

</div>

Hello,  
loading Airtable data, I store an external web link. How to I pass this information to “Any Button” component? (to replace the default values with mine).

Thanks  
Andrea

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/7/17b195dd5f1fcbf19c5aec48599c0638a44ec969.png)

---

<div class="post-metadata">

**Author:** ![choi\_beomgyu](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/choi_beomgyu/32/105994_2.png) [@choi\_beomgyu](https://community.thunkable.com/u/choi_beomgyu)\
**Post date:** [June 5, 2020, 12:05am UTC](https://community.thunkable.com/t/any-button-click/593891/2 "2020-06-05T00:05:34Z")

</div>

Maybe change it from any button to when button one or whatever button number

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 5, 2020, 5:47am UTC](https://community.thunkable.com/t/any-button-click/593891/3 "2020-06-05T05:47:48Z")

</div>

Sorry I don’t understand; could you give me an example?  
The problem is that I have the list with values and I know the button UniqueID … but how I match them?

---

<div class="post-metadata">

**Author:** ![choi\_beomgyu](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/choi_beomgyu/32/105994_2.png) [@choi\_beomgyu](https://community.thunkable.com/u/choi_beomgyu)\
**Post date:** [June 5, 2020, 7:04pm UTC](https://community.thunkable.com/t/any-button-click/593891/4 "2020-06-05T19:04:40Z")

</div>

Maybe change the languege?Also maybe change the letter

---

<div class="post-metadata">

**Author:** ![Michael\_Rogulla](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Rogulla](https://community.thunkable.com/u/Michael_Rogulla)\
**Post date:** [June 5, 2020, 9:27pm UTC](https://community.thunkable.com/t/any-button-click/593891/5 "2020-06-05T21:27:46Z")

</div>

Hi @Andrea_Marchisio,

have a look at my github issue #295 how to get the index of a clicked “any button”. With the index you can fetch the URL from the list “Articoli\_link” and open this URL in “open link”.

---

<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:** [June 6, 2020, 4:59am UTC](https://community.thunkable.com/t/any-button-click/593891/6 "2020-06-06T04:59:39Z")

</div>

Hello,

Your question looks like you were the first to reach the finish line, but you don’t know how to cross it to win over the blocks.

In your blocks, you assign a Button.BackgroundPicure = URL

Now you need to take the URL FROM the “get any button BackgroundPicure” component in “Any Button Click” and the problem is solved.

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 6, 2020, 8:15am UTC](https://community.thunkable.com/t/any-button-click/593891/7 "2020-06-06T08:15:12Z")

</div>

Ciao,  
good idea to pass info to Any Button but I have to do another action: the information I have to pass is not a property of a button but a variable information (app Articoli\_Link) that contain an external website URL.  
In other words any button has to link me to different external web site … I stored that info into Airtable and then into variable list “app Articoli\_Link”.  
So the problem is to pair the ID button I pressed to ID of my variable list …

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/7/17b195dd5f1fcbf19c5aec48599c0638a44ec969.png)

---

<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:** [June 6, 2020, 8:19am UTC](https://community.thunkable.com/t/any-button-click/593891/8 "2020-06-06T08:19:04Z")

</div>

So save the ID in the Button property.BackgroundPicture through the symbol # from the URL. Then in the event handler make a list with a # separator and get the ID and URL:

```
Button.BackgroundPicture = ID#URL

Button Click{
    get list from text with #
    ID = get 1 from list
    URL = get 2 from list
}
```

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 7, 2020, 6:04pm UTC](https://community.thunkable.com/t/any-button-click/593891/9 "2020-06-07T18:04:36Z")

</div>

I am studying it, it is quite clear to me but I have just a few questions about the IDs of the objects.  
Does every object have an ID? right? a row, a column, a button, a label a text input etc etc.  
So if I’m cloning a row, the ID that I get from “clone” is the one relative to the row and not the objects contained in it, right?  
I think this is so, because if I compare the “clone” IDs with the “component” IDs they are different.  
So how do I exactly get the IDs of the individual buttons created/cloned?

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

---

<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:** [June 7, 2020, 6:36pm UTC](https://community.thunkable.com/t/any-button-click/593891/10 "2020-06-07T18:36:21Z")

</div>

When you clone or create objects, their IDs are placed in the list of components of the given type in the parent container. If the parent container is Row1, the button clones will be placed in the list, which you can get using the “all Buttons in Row1” block.

But you can do without this if you create your own ID, for example, in the Button property.BackgroundPicture you write “id1”. In the Any Button Click block, you get a component using the “component” block and see its Button property.BackgroundPicture

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 7, 2020, 9:26pm UTC](https://community.thunkable.com/t/any-button-click/593891/11 "2020-06-07T21:26:43Z")

</div>

Good idea but my background Pictures are dynamic and I cannot change them.  
I made some tests and I understood that when I clone an object (row, button, column etc) I can obtain, from “clone” during the loop, just the ID of the object cloned and not the sub-object also cloned.

In my case I clone a row that contain a button; “clone” contain ID of rows and not the ID of the buttons.  
That’s why I can’t find a match when I use “Any Button” - “Component”

---

<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:** [June 8, 2020, 6:59am UTC](https://community.thunkable.com/t/any-button-click/593891/12 "2020-06-08T06:59:03Z")

</div>

You are right that when you clone a container, you can get the container’s identifier, but I don’t understand why you have problems determining which button inside the container was clicked. See my example.

[https://x.thunkable.com/projects/5eddde43c6189c2253051801/project/properties/designer/](https://x.thunkable.com/projects/5eddde43c6189c2253051801/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 12, 2020, 1:23pm UTC](https://community.thunkable.com/t/any-button-click/593891/13 "2020-06-12T13:23:32Z")

</div>

Hello @actech,  
sorry for the late but I work on it a few days … the system to get the buttom IDs works fine (Any Button) but now mixed yor example I try to show you the issue that I said.  
The block turns 10 times it’s true and you see 10 buttons on the screen but:

1. I named the buttons cloned (just to assign a text label)
2. you will see that 9 buttons will have the text label and the 10th no
3. “remove button” has nothing to do with it (just remove the button on the top)

So really you have 10 buttons but just 9 has modified and cloned as I wanted.

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

---

<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:** [June 12, 2020, 3:10pm UTC](https://community.thunkable.com/t/any-button-click/593891/14 "2020-06-12T15:10:37Z")

</div>

Check this. The problem is that block syncing failed in the last update, making it impossible to use Thunkable X. Using a delay block is not the solution to this big problem.

[https://x.thunkable.com/projects/5eddde43c6189c2253051801/project/properties/designer/](https://x.thunkable.com/projects/5eddde43c6189c2253051801/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [June 12, 2020, 5:37pm UTC](https://community.thunkable.com/t/any-button-click/593891/15 "2020-06-12T17:37:22Z")

</div>

tried … no delay doesn’t fix the problem. So I wait next update.

Thanks  
Andrea

---

<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, 11:27am UTC](https://community.thunkable.com/t/any-button-click/593891/16 "2024-11-08T11:27:07Z")

</div>


