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

Community site session details

Session Id : guxSvWAHGg7iYuWXKenQMR
Power Apps - Building Power Apps
Answered

Navigate to Prior Screen from Successfully Save Screen

Like (0) ShareShare
ReportReport
Posted on 6 Aug 2021 20:01:25 by 108

My App goes to a success screen upon saving a record.  From the success screen, I'd like to give the option to go back to the previous screen where the record exist if the user wants to re-edit or add something else.

 

I tried adding a back button and specifying the following OnSelect

 

Navigate(EditScreen1,Fade,Form1.LastSubmit) 

 

But it doesn't work.

Categories:
  • Ms-PowerRanger2 Profile Picture
    108 on 08 Aug 2021 at 02:53:07
    Re: Navigate to Prior Screen from Successfully Save Screen

    That worked!  Thanks!!!

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on 08 Aug 2021 at 02:26:49
    Re: Navigate to Prior Screen from Successfully Save Screen

    Hi @Ms-PowerRanger2 

    The reason is on the edit screen, the form Item property needs to be updated. Looks like the current setup for the Item property is BrowseGallery.selected. This is what main change needs to happen.

     

    For this change, we have to use the same variable when you select the item from the Gallery and store the New ID when it's created.

     

    Steps:

    1. "OnSelect" of the browse gallery to 

     

     

    Select(Parent);Set(SelectedId,BrowseGallery1.Selected.ID)

     

     

    2. On EditScreen, Set Form "OnSuccess" property to 

     

     

    Set(
     SelectedID,
     EditForm1.LastSubmit.ID
    );
    Navigate(
     SucessScreen,
     ScreenTransition.Fade
    );

     

     

     

    3. On Edit Screen, Form "Item" property to

     

     

    LookUp(IssueTracker, ID=SelectedId)

     

    4. On the Success screen, set "OnSelect" navigation to icon/button

     

    Navigate(EditScreen1, ScreenTransition.None)

     

     

  • Ms-PowerRanger2 Profile Picture
    108 on 08 Aug 2021 at 02:12:07
    Re: Navigate to Prior Screen from Successfully Save Screen

    It won't work for me.  I'm going back to an edit screen (Not sure if that makes a difference) ... Navigate(EditScreen1, Fade)... It never shows the record I just saved rather It seems to show the record I saved prior to that one.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on 08 Aug 2021 at 01:43:44
    Re: Navigate to Prior Screen from Successfully Save Screen

    Hi @Ms-PowerRanger2 

     

    We are discussing just navigation. So as @RandyHayes mentioned no need to use Form1.LastSubmit.

     

    1. In Edit Screen, set Form "OnSuccess" property to 

     

    Navigate(SucessScreen,ScreenTransition.Fade);

     

     

    StalinPonnusamy_0-1628386831199.png

    2. On the Sucess screen, the icon/button "OnSelect" property to

     

    Navigate(BrowseScreen1, ScreenTransition.None)

     

    StalinPonnusamy_1-1628386992124.png

     

  • Ms-PowerRanger2 Profile Picture
    108 on 08 Aug 2021 at 00:28:55
    Re: Navigate to Prior Screen from Successfully Save Screen

    Hi RandyHayes, Thanks for insight.  I'm not sure I'm implementing your suggestion correctly. 

     

    My Item Property is currently set to Gallery1.Item.  Are you saying to just set OnSuccess to Set(mySavedRecordVar, Self.LastSubmit)  and just reference the variable with the back arrow on the success screen?  Do I need to do something different with the Item property?

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 07 Aug 2021 at 16:59:21
    Re: Navigate to Prior Screen from Successfully Save Screen

    @Ms-PowerRanger2 

    What is the Item property of the form?

    If it is a variable, then you can update the variable in the OnSuccess action of the form. i.e.  Set(yourVar, Self.LastSubmit)  then it will be the last submitted record.

    But, this is a guess without knowing your Item property on the form and your OnSuccess action formula.

  • Ms-PowerRanger2 Profile Picture
    108 on 07 Aug 2021 at 00:22:54
    Re: Navigate to Prior Screen from Successfully Save Screen

    Either with or without the optional 3 parameter, It doesn't appear to work when I do the following...

     

    Add New Record > Save Record > Land on Saved Successfully Screen > Navigate to EditScreen

     

    This will show the last record that I edited but not the new record I just successfully saved. 

     

    Either option will work for me if I just choose to save a record that already existed and want to go back to edit the record from the saved successful screen.

     

     

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 06 Aug 2021 at 20:14:34
    Re: Navigate to Prior Screen from Successfully Save Screen

    @Ms-PowerRanger2 

    I am not sure of what you are aiming at with the Form1.LastSubmit in your function.

    The formula should be: Navigate(EditScreen1,Fade)  or simply Back()

     

    I hope this is helpful for 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete