cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NigelP
Level 8

How to stop execution until a button on a pop-up screen has been pressed ?

Hi

 

I have an PowerApps application which checks some values on a form and does a calculation based upon variables. if the result of the calculations are NOT in in the prescribed range, throws up a Pop-Up screen and asks the user to confirm they want to continue even if the calculations are out of range.  If the user clicks "OK" processing continues and the form is submitted.  If the user clicks "Cancel", then processing stops and we go back to the main menu.

 

How do I suspend processing (ie not submit the form) until the user clicks on "OK" ?

 

Thanks

 

Nigel

1 ACCEPTED SOLUTION

Accepted Solutions
emh
Level 8

Re: How to stop execution until a button on a pop-up screen has been pressed ?

Hello Nigel,

 

Here is what has worked for me in the exact same situation:

 

ButtonCancel OnSelect property: UpdateContext({DisplayPopUp: false}); Navigate(MainScreen,ScreenTransition.Cover)

 

ButtonOK: UpdateContext({DisplayPopUp: false}); SubmitForm(YourForm)

 

Does this help?

View solution in original post

1 REPLY 1
emh
Level 8

Re: How to stop execution until a button on a pop-up screen has been pressed ?

Hello Nigel,

 

Here is what has worked for me in the exact same situation:

 

ButtonCancel OnSelect property: UpdateContext({DisplayPopUp: false}); Navigate(MainScreen,ScreenTransition.Cover)

 

ButtonOK: UpdateContext({DisplayPopUp: false}); SubmitForm(YourForm)

 

Does this help?

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,527)