web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Validate, Submit, Navi...
Power Apps
Answered

Validate, Submit, Navigate issue

(0) ShareShare
ReportReport
Posted on by 165

Been struggling with what i think is a simple issue.....

i have a form that i want to Validate all fields, Submit the form, then navigate to another screen for confirmation.  All the fields are required.  Soooooo

If i put SubmitForm(SharePointForm1), i can see what fields need to be filled in that were left out.  WORKS.  So i create a second screen for confirmation.  I changed the code to:

If(SharePointForm1.Valid, SubmitForm(SharePointForm1);Navigate(Screen1,Fade))

 

it submits the form (when all fields are filled), but does not navigate to Screen1. and just goes back to the SharePoint list.  Also, when testing, i purposely didnt fill in a field or two to see if the error messages would still work (show errors of missing info) and it does not work anymore.(show the missing data error like when i had with SubmitForm(SharePointForm1).

Not sure why the errors stop showing and not sure why after successful sumit, it refuses to navigate to the Confirmation Screen.  Any ideas?

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @cnorris135 

    I have a couple of suggestions.  First, move the navigate() function to the OnSuccess property of the form.  You do not want to activate that command unless the form is successfully submitted. You could use Notify() to pass a message to the user from the OnSuccess or OnFailure properties.  I like to disable the Submit button unless all of the required fields are filled with data.  

  • cnorris135 Profile Picture
    165 on at

    i will try the OnSuccess...

    how do i get the fields to display the general error message label in the card?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @cnorris135 

    Please see this thread by @RandyHayes .  It addresses validation issues very well and how to customize the messages. https://powerusers.microsoft.com/t5/Building-Power-Apps/Customize-Error-Message-for-Datacard/m-p/256318#M75086 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard