cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

PowerApps Handling Error Message in Edit Form

Dear Community,

I have a question regarding my Powerapp.

In my app there is a form with required fields. When every field is filled out it navigates to a second screen.


My question is how to make it possible to stay on the main screen when Error messages appear?

 

Thanks for your help in advance.

Best regards!

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Anonymous ,

I assume you are saving with SubmitForm() before Navigating. Put the Navigation on the OnSuccess of the form instead of at the end of the save code.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @Anonymous ,

I assume you are saving with SubmitForm() before Navigating. Put the Navigation on the OnSuccess of the form instead of at the end of the save code.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Anonymous
Not applicable

Hi @WarrenBelz ,

 

thank you for your quick reply as well as you good hint. 

 

Unfortunately, as I'm trying to save the form it still leads me to the second screen although there are not all required fields filled out.

 

Hi @Anonymous ,

A form should not save with required fields not completed - you need to take the Navigate code off the save. If it is OnSuccess, it will only navigate if the form saves successfully.

Anonymous
Not applicable

Hi @WarrenBelz ,

it is working now. Really appreciate your help.

 

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,200)