# Button in Widget not working, Please help

**URL:** <https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903>\
**Category:** Game Development\
**Tags:** unreal-engine, Widget, Blueprint, question\
**Created:** [June 23, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903 "2024-06-23T18:03:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stuzo53](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stuzo53](https://forums.unrealengine.com/u/Stuzo53)\
**Post date:** [June 23, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903/1 "2024-06-23T18:03:59Z")

</div>

[ButtonNotWorking.mkv](https://forums.unrealengine.com/uploads/short-url/3eu4JXkMunmkodPRMcmODcb8WSm.mkv) (7.0 MB)

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/8/ef8563b290712b8fb16d1969595f253aa6ac10fd.jpeg)  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/e/f5e6f64360ad1c86225fed2ea556c8ff30436552.jpeg)  
 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/2/582693daddf482379823a746eab3b02745fa00c8.jpeg)

The Exit button works but Level 1 doesn’t, I think its a bug but if there is any solution please let me know, I have also attached a video.

---

<div class="post-metadata">

**Author:** ![jmancoder](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jmancoder/32/943721_2.png) [@jmancoder](https://forums.unrealengine.com/u/jmancoder)\
**Post date:** [June 24, 2024, 5:25am UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903/2 "2024-06-24T05:25:45Z")

</div>

Maybe you have a white space after the level name string.

---

<div class="post-metadata">

**Author:** ![Monz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monz/32/1194614_2.png) [@Monz](https://forums.unrealengine.com/u/Monz)\
**Post date:** [June 24, 2024, 12:56pm UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903/3 "2024-06-24T12:56:07Z")

</div>

Although this shouldn’t be a problem, it could be that the button is not working because you are already in Level1 when trying to open Level1:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/5/905777fef9dbb9df76b7aac4b8e96efd1e47883f.jpeg)

You could also try opening the level By Object Reference instead of By Name.

Rarely, if you had a different level name, and then changed it to Level1, the Open Level node would need refreshing to work. I don’t remember the last time this has happened, but you can right click on the Open Level node then Refresh, or from File \> Refresh All nodes.

---

<div class="post-metadata">

**Author:** ![Stuzo53](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stuzo53](https://forums.unrealengine.com/u/Stuzo53)\
**Post date:** [June 24, 2024, 3:44pm UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903/4 "2024-06-24T15:44:29Z")

</div>

No, it still doesn’t work…and I don’t think its the problem of me being in level the same level as the game should work.

---

<div class="post-metadata">

**Author:** ![Monz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monz/32/1194614_2.png) [@Monz](https://forums.unrealengine.com/u/Monz)\
**Post date:** [June 24, 2024, 4:38pm UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903/5 "2024-06-24T16:38:51Z")

</div>

You’re travelling to the same level, and adding the MainMenu widget to the viewport OnBeginPlay of the level, so everytime you click the “Level 1” button you are actually opening the level where the widget is then added to the viewport just like it should. Basically, since you’re traveling to the same level, nothing at all would happen or change in the scene or UI when you click “Level 1”, so you will get no feedback other than the debug string.

Can you make sure that Show Stats is enabled so that the debug string is visible?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/7/197a44c78b8a15aeaabde2db678341109a3ed226.jpeg)

---

<div class="post-metadata">

**Author:** ![Stuzo53](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stuzo53](https://forums.unrealengine.com/u/Stuzo53)\
**Post date:** [June 24, 2024, 6:11pm UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903/6 "2024-06-24T18:11:05Z")

</div>

> [@Monz](#):
>
> Can you make sure that Show Stat

Thanks I actually got the solution!!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 24, 2024, 6:11pm UTC](https://forums.unrealengine.com/t/button-in-widget-not-working-please-help/1913903/7 "2024-07-24T18:11:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
