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 / How to navigate to the...
Power Apps
Answered

How to navigate to the custom success screens only when SharePointForm1 is success.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Guys..

 

I have a problem in the navigation on OnSave property of SharePointIntegration(when OOTB Save click) as well as in a custom button I have created as "Submit" OnSelect. When I click OOTB "Save" without filling required fields, the form immediately shows the validation messages on the form but suddently navigates to "Save Success" screen(I have created a separate screen for successful save). I want to navigate to the save success screen only after form is saved without any validation errors. Similarly in the case of custom button, I have given a navigation to another success screen says "Submitted successfully", but unable to control the validation success to navigate to another screen.

 

Please help me out to resolve this issue.

 

SharePointIntegration : OnSave I have given the formula as follows, but no luck it is not working..

SubmitForm(SharePointForm1); If(SharePointForm1.ErrorKind = None, Navigate(SaveSuccessScreen,ScreenTransition.Fade))

 

Similarly, in the custom button BtnSubmit : OnSelect, I have given the formula as follows..

SubmitForm(SharePointForm1); If(SharePointForm1.ErrorKind = None, Navigate(SubmitSuccessScreen,ScreenTransition.Fade))

 

Both above formulas are not working. Please advise..

Categories:
I have the same question (0)
  • tchin-nin Profile Picture
    779 on at

    Hi @Anonymous

     

    You can use the Navigate function on the OnSuccess property of the Form control.

     

    Théo

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi tchin-nin

     

    Thanks..

     

    Please advise how can I identify the two button clicks ie, One is from OOTB "Save" Click and another one is custom button "Submit" that I have placed in the form. I have to navigate to different screens when user click on "Save" and "Submit"

  • Verified answer
    tchin-nin Profile Picture
    779 on at

    You can set a variable and have different behavior according to this variable : 

     

    SharePointIntegration.OnSave : Set(Submitvar,"OOTBbutton");SubmitForm(Form1)
    CustomButton.OnSelect : Set(Submitvar,"Custombutton");SubmitForm(Form1)
    Form1.OnSuccess : If(Submitvar="OOTBbutton",Navigate(Screen1,None),Submitvar="Custombutton",Navigate(Screen2,None),ResetForm(Form1);RequestHide())

     

    Théo

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Awesome..Its worked..

     

    Thank you...

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard