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

Required Field not entered

I have a PowerApp that has a form with several Required Fields. However, if the user clicks submit button without entering those required fields, it still sends them a confirmation email and goes to sent confirmation screen. Is there a way for it to not complete those 2 steps if all required fields are not completed? PowerApps does have the small error message at the top of the screen but that flashes so quick and sometimes is missed. Here is my formula:

 

SubmitForm(NewIncidentForm);

Office365.SendEmail(User().Email, "Incident Submitted - " & IncidentNumValue, "<b>Your incident has been submitted successfully</b>", {IsHtml: true});

Reset(cbCustomer);
Reset(cbEmployID);
Reset(cbOwnerOp);
ResetForm(NewIncidentForm);
Navigate(NewIncidentSuccess,ScreenTransition.Cover)

1 ACCEPTED SOLUTION

Accepted Solutions
Triplee23
Regular Visitor

Have you tried placing the email function, reset function and navigate on the forms OnSuccess property. It will then only fire if the SubmitForm is successful.

 

 

View solution in original post

2 REPLIES 2
Triplee23
Regular Visitor

Have you tried placing the email function, reset function and navigate on the forms OnSuccess property. It will then only fire if the SubmitForm is successful.

 

 

Anonymous
Not applicable

@Triplee23 

 

That worked. Thank you!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,182)