cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Anonymous
Not applicable

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
Anonymous
Not applicable

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 Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,841)