# How can I create a confirmation widget, that will communicate back to its parent?

**URL:** <https://forums.unrealengine.com/t/how-can-i-create-a-confirmation-widget-that-will-communicate-back-to-its-parent/472020>\
**Category:** UI\
**Tags:** communication, buttons, unreal-engine, menu, Widget, question, UMG\
**Created:** [September 27, 2020, 9:13am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-confirmation-widget-that-will-communicate-back-to-its-parent/472020 "2020-09-27T09:13:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeAsterios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MikeAsterios](https://forums.unrealengine.com/u/MikeAsterios)\
**Post date:** [September 27, 2020, 9:13am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-confirmation-widget-that-will-communicate-back-to-its-parent/472020/1 "2020-09-27T09:13:35Z")

</div>

I would like to create a separate widget with “confirm” and “decline”. Which will be created by any buttons pressed that would require such a confirmation, such as when a player presses “new game”.

I created the confirmation widget along with buttons, but I don’t know how to communicate the player’s choice back to the main menu widget.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 27, 2020, 9:24am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-confirmation-widget-that-will-communicate-back-to-its-parent/472020/2 "2020-09-27T09:24:27Z")

</div>

You’re looking for an Event Dispatcher. A native button already has one (more than one, actually). For a menu that creates a pop-up prompt that reports back to its creator, you could hook it up like so:

 ![316041-screenshot-2020-09-27-102231.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/9/d791aafb13879ccd98595832c4f49db56c0d686b.jpeg)

Above, the OK | CANCEL are the buttons. You can add a more complex dispatcher to the prompt widget, one that sends actual data, too.

---

<div class="post-metadata">

**Author:** ![MikeAsterios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MikeAsterios](https://forums.unrealengine.com/u/MikeAsterios)\
**Post date:** [September 27, 2020, 9:27am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-confirmation-widget-that-will-communicate-back-to-its-parent/472020/3 "2020-09-27T09:27:17Z")

</div>

Thanks a bunch man! Will try as soon as i get back to my project!

---

<div class="post-metadata">

**Author:** ![cyburdine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyburdine](https://forums.unrealengine.com/u/cyburdine)\
**Post date:** [February 7, 2022, 12:11am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-confirmation-widget-that-will-communicate-back-to-its-parent/472020/4 "2022-02-07T00:11:09Z")

</div>

I’m running into this same problem, I tried to view the image you posted but it looks like it’s no longer valid. Do you still have a link to that screenshot?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 7, 2022, 9:21am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-confirmation-widget-that-will-communicate-back-to-its-parent/472020/6 "2022-02-07T09:21:44Z")

</div>

> [@cyburdine](#):
>
> Do you still have a link to that screenshot?

I do not. Instead, I trusted the forums wizards with my precious screenshots and they lost it, an appropriate complaint has been filed, worry not!

* * *

While we wait for the stuff to get fixed:

- this is my `wOptions` widget that has _OK_ and _CANCEL_ buttons:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/7/987f4b1373fb66a44326a787df39122022d7f4c1.png)

- and this is my `wMain` widget that shows the abovementioned `wOptions`

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/2/192b90418d1641fe0e60c4ba68fc241fb022a234.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/e/8ceb19778dd3880adaf73c40498afac3f735d5a9.png)

- when the user presses _OPTIONS_ a new options menu with _OK_ and _CANCEL_ buttons pops up
- we register the button clicks of the new options menu with events in the `wMain`
- if any of those buttons are clicked, `wMain` will fire the appropriate event, (replace `Print Strings` with what you need to happen) and the menu gets closed

* * *

The above can be made better / cleaner with a custom event dispatcher.
