cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chrislond58
Helper II
Helper II

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

@Chrislond58 

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

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

Chrislond58_0-1617285619468.png

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

Drrickryp
Super User II
Super User II

@Chrislond58 

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. 

Chrislond58
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_1-1617287676178.png

 

@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

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

Visible on the pop-up

varPopup

On the OK button OnSelect 

UpdateContext({varPopup:false})

 

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: 

@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

Announcements
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

secondImage

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)