Announcements
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.
@ericnn Are you trying to put this in a PowerApps Canvas app?
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.
@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.
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.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 541
WarrenBelz 434 Most Valuable Professional
Valantis 289