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 / Screen Navigate - Not ...
Power Apps
Answered

Screen Navigate - Not working on Form's OnSuccess

(0) ShareShare
ReportReport
Posted on by 36

I'm using a Form and a Gallery both in my App for Master/Detail SharePoint List updates.

Form submit a record to "Daily Fish Catch Master" SharePoint Master List, and Gallery updates the record to "Daily Fish Catch Detail" SharePoint Detail List.

 

Challenges:

The code I have On submit is "SubmitForm(FormDailyFishCatchMaster)" and "OnSuccess" of this form I'm using Patch to patch the Gallery items to the SharePoint's detail list. Everything works well till I add the "Navigate" to Success Screen after Patch Code, it's not working and even when I use "Navigate" function, it stops adding the Gallery items to Detail SharePoint list, just update the From list's items in SharePoint.

 

I have attached the screenshots for your review, thank you in anticipation 🙂

Navigate Screen Issue.jpg
Navigate Screen Issue- 2.jpg
Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    Can't answer why it's not navigating, although I suspect its a timing issue. Could you try creating a Timer, running for 1000 (1 second), then set your OnSuccess for the form to Start the timer (best way to do this from experience is to set to false, and then set to true, not just set to true) and then set the OnTimerEnd to your Navigate and ResetForm.

     

    Let me know if this helps,

     

    Cheers,

    ManCat

  • K-A-R-L Profile Picture
    715 on at

    Hi @Muzammil ,


    Just a suggestion:


    Have you tried compiling your OnSuccess  codes and Submit Form as one in the OnSelect Property of the Submit Button? Any reason why you need to separate the two codes?

    You can try:

    Adding the code below to your OnVisbile Property of your HomeScreen:

    Set(NewForm, true);

    Add this to your OnSelect in Submit Button:

    If(NewForm = true, 
    <<---Add all your OnSuccess Code here Except the Navigate() and Reset()---->>
    ;
    SubmitForm(EditForm);
    Navigate(SuccessScreen,None);Reset(FormDailyCatchMaster))

     Please read the same issue on this post: https://powerusers.microsoft.com/t5/General-Discussion/Navigate-to-screen-A-if-adding-a-record-otherwise-Navigate-to/td-p/320741

     

    ----------------------------------------------------------------------------
    Thanks,
    K-A-R-L


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    If you thought this post was helpful, please give it a Thumbs Up.

  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    You should never do those things together, it's best practice to separate them - and I'll give you a good user story example why (this has happened to me).

     

    Let's say there's a validation error on your form,

       then the email will send when you click submit, with invalid values,

           but the form will not submit,

       then you will edit the form and correct the issue,
           click submit, but another validation issue,

           the email will send again, with invalid values,

           but the form will not submit,

       then you fix all the errors, click submit,

           the third copy of the email will then send, a correct version

           and your form will submit

     

    by this time the recipient has three emails all with differing data, which one do they use?

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard