PowerApps Navigate to Previous Screen

PowerApps navigate to previous screen functions makes it fairly easy to move from one screen to the next. Most apps will have more than a single screen.
In an application with many screens it is worth thinking like the user of the app and anticipating where they may want to go next. It could be that your users will know what they want and will tell you which screen should show next.

PowerApps Navigate

There will be instances when you want them to return to the home or menu screen. It could be that they need to go to a screen which relates to the one they are currently on. So will PowerApps navigate to another screen functionality be beneficial for your app?

Most apps will benefit from having a main menu screen. This could consist of a series of buttons which take you to a screen for updating, adding or deleting information. It is a good idea to add a button to exit the app also.

I like to use an icon for a Home screen – when clicked the user would be taken to the start screen of the application – this could be the main menu. PowerApps navigate to previous screen functionality will be possible in this case.

PowerApps Navigate to Previous Screen in Two Ways

There are two ways of navigating between screens.

We can use:
Navigate(ScreenName)
or
Back()
These functions do not necessarily need to sit behind buttons. We can trigger them in other ways.

Can PowerApps Navigate to Previous Screen Seamlessly?

It certainly appears so and the way to do it is by using Navigate or Back.

PowerApps Navigation if Record is Saved or Not

Navigation can be used if a record is saved successfully. If the record is not saved and something has gone wrong then you may wish to display a message informing the user. Far better to tell the user what has happened than to leave them with a blank screen wondering what to do next.  If your application is using forms, we can easily do this.
Click on your form and look for the OnSuccess event.
In here you can write code to move to the next screen.
Navigate(ScreenName)

When using Back and Navigate functions in PowerApps, it is also possible to include a visual transition to control the look when one screen changes to another.

For example, you can use a Fade effect.
Navigate(ScreenName, ScreenTransition.Fade

There is also an OnFailure event which can be used to display a message to the user informing them that
the record did not save.

Notify(“Something went wrong and the record did not save”)

PowerApps Navigate to Previous Screen – The Back function

You can use the Back function to return to the screen that was most recently displayed.

Back()

This command will take you back to the screen you were on previously.

Conclusion

PowerApps has some useful, yet powerful navigation functions to get you around your app easily. A well designed app should enable users to easily move from one screen to the next.

Also check PowerApps Button Onselect

;

Pin It on Pinterest

1
Welcome to PowerApps Support
Hello
Can we help you?