Showing results for 
Search instead for 
Did you mean: 
Not applicable

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
Super User


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

Not applicable

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
Super User


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. 

Not applicable

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.

Not applicable



Not applicable



@Anonymous ,

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 



Not applicable

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: 


@Anonymous ,

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

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,289)