Dynamically spawn widget from dynamic spawned button

Hello everyone !

I’m trying to do the following :
1/ Spawn button in an vertical box, dynamically (depending on the number of elements in an array) || DONE

2/ From this button, when I click it, spawn a widget in an horizontal box || Half DONE

What I mean by half done is that when I click my buttons, the buttons are not working beside the last one added. I’ve tried with an event dispatcher, but it does not seems to work well…

Like this:

First of all, thank you my kind sir (or madam) for your quick response. I tried your method, and it is indeed giving me good results. The only thing is, all the buttons triggers the same actions, and i need them to be triggering different actions. I am joining a rip-oo my project with the basics functionnality needed to understand what i want.
If you open the project, open the map called “LevelSelection” and press play, you see two buttons. If you press any of them, it spawn a widget, but this widget is not supposed to be the same depending of the button you press. I’m sorry if I’m a bit blury…

Link to the project:

If I get to choose, I’ll go for sir, yay!

The only thing is, all the buttons
triggers the same actions, and i need
them to be triggering different
actions.

What you’ve described makes perfect sense. I did not download your project but the following seems to be doing what you need:

Thanks to you again, this solved my issue ! Thank you kind sir !