# How to call Popup Dialog Device's Responses in Verse

**URL:** <https://forums.unrealengine.com/t/how-to-call-popup-dialog-devices-responses-in-verse/1151014>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 1, 2023, 6:44pm UTC](https://forums.unrealengine.com/t/how-to-call-popup-dialog-devices-responses-in-verse/1151014 "2023-05-01T18:44:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EV\_WAKA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EV\_WAKA](https://forums.unrealengine.com/u/EV_WAKA)\
**Post date:** [May 1, 2023, 6:44pm UTC](https://forums.unrealengine.com/t/how-to-call-popup-dialog-devices-responses-in-verse/1151014/1 "2023-05-01T18:44:33Z")

</div>

![VerseQuestion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/f/42fadef330c66030e00979bb0604e1ab815bd369.png)  
I want to use this method inside the popup dialog device but not sure how to setup the handle function since it involves a tuple.

My goal is to have a Pop Up Dialog Device show up after I click Response 1 of another Pop Up Dialog Device.

I tried this below but it doesn’t work. Anyone have tips on this? Thanks!

OnResponse1Click(tuple[Agent : agent, ResponseButton]) : void =  
if (set ResponseButton := 1):  
SecondUI.Show(Agent)

---

<div class="post-metadata">

**Author:** ![Sniperdogg007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sniperdogg007](https://forums.unrealengine.com/u/Sniperdogg007)\
**Post date:** [September 19, 2023, 6:17pm UTC](https://forums.unrealengine.com/t/how-to-call-popup-dialog-devices-responses-in-verse/1151014/2 "2023-09-19T18:17:45Z")

</div>

It’s been long time since you asked but I ran into this issue. Here is the working code.

Makes this Popup appear in the in the Hello World Device (Make sure you link it)

@editable MyPopup : popup\_dialog\_device = popup\_dialog\_device{}

Listener for someone pressing any of the popup buttons

MyPopup.RespondingButtonEvent.Subscribe(PopUpPress)

Function called when popup is pressed, This is the turple(agent, int)

PopUpPress(Agent : agent, Number : int) : void =  
Print(“Popup button triggered {Number}”)

if a turple is required you just define the parameters in function header do not need to define it as a turple.

---

<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:** [October 19, 2023, 6:18pm UTC](https://forums.unrealengine.com/t/how-to-call-popup-dialog-devices-responses-in-verse/1151014/3 "2023-10-19T18:18:29Z")

</div>

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