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
Highlighted
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
Highlighted
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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,306)