cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Kingpin
Kudo Kingpin

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

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