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 / How do I insert a back...
Power Apps
Answered

How do I insert a back button to SharePoint using PowerApps?

(1) ShareShare
ReportReport
Posted on by 35

In the latest version of SharePoint Online (2019), I want to create a back button which would direct me to the page I was on previously.

 

What I am looking to create is a back button that can be applied universally throughout the site.

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @ericnn  Are you trying to put this in a PowerApps Canvas app?

  • ericnn Profile Picture
    35 on at

    Yes, Canvas or whatever else works. I'm new and don't have much expertise with PowerApps, so I want to learn how to add this button so that it is visible in any page on the site, including the Documents section.

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @ericnn 

     

    Try this classic trick of simply adding a Link (directly to the SharePoint site) that has the js call to go back in the browser history for the onClick property, something like this as a button:

     

     

    [html]<a href="#" onClick="history.go(-1)">Back</a>[/html]

     

     

    If this helped let us know.

  • ericnn Profile Picture
    35 on at

    Annotation 2020-01-10 102731.png

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @ericnn 

     

    We meant on the SharePoint site itself as a new Link as per your question.

     

    We don't think you can do this from a Canvas app at all actually, though you can check it.

     

    Therefore, we are answering this as if you posted in a SharePoint forum essentially is what we are saying.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @ericnn ,

    Could you please share a bit more about your scenario?

    Do you want to embed a canvas app into your SP Site?

     

    Based on the needs that you mentioned, I afraid that PowerApps canvas app could not achieve your needs. There is no function or solution supported in PowerApps to control SP Site Web Page outside the canvas app via pressing button inside the canvas app.

     

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

    As an alternative solution, you could consider create a custom button in your SP Site, and then configure a event to it using JavaScript code. Please check and see if the following article would help in your scenario:

    https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/add-a-custom-ribbon-to-your-sharepoint-site

     

    Best regards,

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#2
Haque Profile Picture

Haque 69

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard