Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Showing a Pop Up and Closing with an OK button

I am in the process of trying to create a popup using various sized Icons, label and a button then creating a group.
I will have to create a few of these and each will show based on the drop down selection chosen.


What I would like to do is hide or send to back or anything once the OK button is clicked; is this possible?

Thank you!

Super User II
Super User II


Check out Shane Youngs video for how to do that and more here 

Helper II
Helper II

I like Shane and his channel but in this case he didn't offer a solution to my question and the same question someone else had. I am actually trying to do what he told this user.


I will do some more searching.
There has to be a solution out there.

Super User II
Super User II


You didn't specify how you are showing your popups.  are you using a context variable ie. UpdateContext() to show your popups?  If so, you can hide and unhide them by creating the variable in you menu with the OnSelect of the button and putting that variable as the Visible property of the popup group and changing it to false in your "x" icon. 

Helper II
Helper II

No, I am showing the popup based on the value of a dropdown box.
My dropdown box will have four choices and each choice will trigger their respective popups.
What I would like to do is make the popup hide or not be visible when "OK" is clicked.





@Chrislond58 ,

Adding to @Drrickryp 's suggestion (which is correct and the only way to do it), set the Variable on the OnChange of the ComboBox


Visible on the pop-up


On the OK button OnSelect 



Hello Warren,
When a user selects a role from the dropdown a popup box should be triggered.
How would I assign a variable for each dropdown choice to trigger the correct popup?

Below are the choices.
Site Admin:
Audit Author: 


@Chrislond58 ,

Just make the Variable varPopup Text with those four values. Each pop-up Visible would then be varPopup="xxxx".

To exit set varPopup to Blank()


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.



Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (91,061)