cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Showing a Pop Up and Closing with an OK button

Hello,
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.

Chrislond58_0-1617281217381.png


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!

11 REPLIES 11
Drrickryp
Super User
Super User

@Anonymous 

Check out Shane Youngs video for how to do that and more here https://www.youtube.com/watch?v=1tJk7LxgocA 

Anonymous
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.

Chrislond58_0-1617285619468.png

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

Drrickryp
Super User
Super User

@Anonymous 

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. 

Anonymous
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.

Anonymous
Not applicable

 

 

Anonymous
Not applicable

Chrislond58_1-1617287676178.png

 

@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

UpdateContext({varPopup:Self.Selected.Value="Admin"})

Visible on the pop-up

varPopup

On the OK button OnSelect 

UpdateContext({varPopup:false})

 

Anonymous
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: 

Auditor:
Manager: 

@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

Announcements
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)