Add widget to viewport from another widget

How do I call an “On click” button from a widget to hide itself and show another widget?
I was able to add to viewport via keyboard, but want to be able to do it on an tablet (No keyboard input).

Hi!

You need remove current widget and add new. In this example just two widgets with buttons. Pressed on button and you switch between two widgets

What I want to do is replacing Y and T events with widget buttons.

Thank you very much. Got it working right away, and calling widgets between each other was a way better solution than I had in mind!