Set visibility of a button in one widget by clicking a button in another widget

Hey, pretty new to UE and game development in general. Spent a long time trying to find a solution to this online, but to no avail.

Basically, I’m creating an interactive in-game desktop computer with a number of apps that the player character can access and perform certain tasks in. I’m designing each app as a different widget. What I want to do is, in one of the widget apps I want to be able to click a button that then changes the visibility of a button in another widget app.

I tried using an “onclick” event and “set visibility” node, but I can’t target the button that I want to change the visibility of because it’s in another widget.

Probably an easy solution, but it eludes me! Is anyone able to enlighten me?

Could you show us the widgets and how they relate to each other?
You could probably create a public function where you change the visibility of the button, and in the other Widget take the PlayerController reference ( that create both Widgets ) and use a PlayerController function where you call the that public function, but it’s a guess.

Welcome to Unreal it’s a very commom issue every new comer faces, basically you are doing it wrong, exactly how i did when i was learning UI for Games, You need to Use Content switcher, so when you click a button it opens the new menu it is preety much a bit detailed info you can connect with me on Whatsapp - +916396173728 and we can schedule a quick zoom session to resolve it