Skip to main content
Community site session details

Community site session details

Session Id : d1tSjz1RkkKf/M3A8adgf8
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 8 Nov 2018 07:28:38 by

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:
  • Community Power Platform Member Profile Picture
    on 08 Nov 2018 at 12:56:40
    Re: How to navigate to the custom success screens only when SharePointForm1 is success.

    Awesome..Its worked..

     

    Thank you...

  • Verified answer
    tchin-nin Profile Picture
    779 on 08 Nov 2018 at 11:18:48
    Re: How to navigate to the custom success screens only when SharePointForm1 is success.

    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
    on 08 Nov 2018 at 11:12:28
    Re: How to navigate to the custom success screens only when SharePointForm1 is success.

    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"

  • tchin-nin Profile Picture
    779 on 08 Nov 2018 at 10:25:58
    Re: How to navigate to the custom success screens only when SharePointForm1 is success.

    Hi @Anonymous

     

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

     

    Théo

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete