cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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