cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mattke07
New Member

"Are you sure" on selection

I have an app that collects results that go directly to a list. 

 

I want to add a popup or something similar that only triggers if the result is "Postitive" - requesting that the user double check the field before submitting.

 

mattke07_0-1601652076305.png

 

 

7 REPLIES 7
mdevaney
Super User
Super User

@mattke07 

Here's an article I wrote on how to add a Pop-Up Form in Power Apps.  The first paragraph is about how to create a 'Confirmation Pop-Up'.  I think its exactly what is needed here.

 

Link to article:

https://matthewdevaney.com/how-to-create-a-pop-up-menu-in-power-apps/

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

I'm a beginner, but when I try to type "locShow" nothing happens. Do I need to change my fx from Text?

locShow

 

@mattke07 

You have to initialize the variable too with an UPDATECONTEXT function.

I don't know what that means, but thanks for the help anyway.

hi @mattke07 ,

 

UpdateContext({locShow: if(YourControlValue = "Positive", true, false)})

@mattke07 

 

Add a rectangle to your screen

add a lable with your text on top of it

add two button, one for "OK" and one for "Cancel"

Now group all the controls by selecting them all and click on group (group1 will be created if you have no other groups yet)

 

now in the OnSelect even on your submit button add the updatecontext i listed.

 

select the group and select  the visible parameter and set that to locShow

 

This will show the group when the user select Positive. you will need another variable to get the response from the buttons to determine the next steps, let me know if you need some more info

@mattke07 

Try to build the short example in the tutorial.  It will walk you through step-by-step.

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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,338)