How to obtain the name of a button dynamically?

Why do you need the actual name of the button?

Please see my toggle button :

blocks

Hi, TIMAI2,
Because I want to do something similar to this:


But I need the button name, obviously :smile:
Thanks a lot

I think this can shorten your button blocks :

blocks (1)

Hi, Salman_Dev,
It's a good idea but, in your example, Button1, Button2, and Button3 are the text attribute of each button, and I need the name of the button.
I can do, as I said before, let the text with no color, but I don't like this way, is not very professional, don't you believe it? :confused:
Best regards,

I think it's quite professional but it's all up to you

blocks (3)

I think you might be interested in this extension :

I'll see later, Salman_Dev, I'm testing your last code, I'd like to give you an opinion.
Thanks a lot!

:grin: :+1:

Seeing this i interpret that you would like to set the picture to the name of the button,
for that you could try this:

image

or simply -

image

This code can also be added in the after click events of respective buttons!

I'm sorry Mr.@Alaqmar_Bohori, I already told him

I didnt get you! :thinking:

It's okay :grin:

Uh, oh... it's time to work for me... :open_mouth:

Thanks a lot to all of you, I'll tell you the tests results tomorrow.

Happy weekend! :wave:

In which case, why not try something like this:

Make a list of lists for each button and corresponding image
In the AnyButtonClicked event, test and then set the image

You also wanted to be able to toggle some buttons, this is how to change the text on each click

you can do the same with button images....

I'm Sorry @TIMAI2 , I already explained that to him before. :grin:

So you did...

1 Like

I'm so confused, just forget it :joy: :rofl: :pray:

Hi, all!
I tested the codes you suggested to me yesterday and they work fine, some of them in one way and the others in other, so I'll do use of them, it's sure. But the best thing, and I am very happy for this, is that I've learned a lot with all of you.
Anyway, after the experience adquired I think the final conclussion about my question is simple: it is not possible to obtain the name of a button dinamically. Right?
Thanks for all and have a very happy Saturday,