Skip to main content

How to Go Back to the Previous Screen in Power Apps with Back

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

A Back button should take people to wherever they came from. The Back function does exactly that, without a screen name: Power Apps remembers which screen was shown before, and returns to it.

Syntax​

Syntax
Back( [ Transition ] )

Back returns to the screen that was displayed most recently. By default it uses the reverse of the transition that brought you to the current screen; pass a transition to force a different one. It returns false if there's no screen to go back to, and works only in behavior properties such as OnSelect (Back and Navigate functions).

Prerequisites​

Step 1: Set Up the Button​

The example's button, btnBackMPS, sits at the start of the screen's header:

PropertyValue
Text"Back"
Icon"ArrowLeft" (How to Add an Icon to a Button in Power Apps)
Width, Height96, 40
AccessibleLabel"Back to the Home screen"

The accessible label starts with the visible word, Back, so people who use voice control can say what they see, and then says where the button goes (Fixed: "Missing Accessible Label").

On a header filled with the theme's primary color, the default Primary button has the same color, so it shows as a white arrow and text on the header.

Step 2: Set OnSelect to Back​

btnBackMPS → OnSelect
Back()

The formula bar with the OnSelect property of btnBackMPS set to Back(), No formula errors present, and the My Plan screen on the canvas with the Back button and the title My plan in the teal header

Step 3: Test It​

Preview with F5, open the screen, and select Back. In the example, the app returned to the Home screen:

The Home screen in preview: the teal header with Career Development Plan, the AU avatar, Welcome, Admin, the job title, the no-manager message, and the My plan and My team buttons

Back or Navigate?​

UseWhen
Back()The screen can be reached from more than one place, and you want to return to wherever the user was
Navigate(Screen)The button always goes to one particular screen

Common Mistakes​

MistakeWhat happensDo this instead
Navigate('Home Screen') on every Back buttonA screen opened from somewhere else sends people homeBack()
An icon-only button with no accessible labelScreen readers have nothing to announceKeep the text, or set AccessibleLabel

Troubleshooting​

SymptomLikely causeFix
Back does nothing in previewPreview started on this screen, so there's nowhere to go back toStart the preview from the previous screen
Clicking the button on the canvas only selects itThat's how the canvas worksPreview with F5, or hold Alt and click

FAQ​

What transition does Back use?​

The reverse of the one that opened the screen. None and Fade are their own reverse.

Can I go back more than one screen?​

Yes. Each Back returns one step, all the way to the screen the app started on.

Conclusion​

Back() in a button's OnSelect returns to the previous screen, whichever it was. Give the button a visible label and an accessible label that starts with it.

Additional Resources​

Stay Updated

Subscribe to our newsletter for the latest tutorials, tech insights, and developer news.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.