Forum Discussion
How to open link in same tab from Power App / SharePoint list
I have a Power App that is integrated with a SharePoint list and would like to have a link open in the same tab when a user saves their changes or cancels them. I also added a button in the app that goes to a link but it opens in a different tab.
Is there a way to get the link to open in the same tab when a user clicks the button and saves or cancels their edits?
Using Launch(“URL”) works for the button but it doesn’t open in the same tab. Launch(“URL”) also doesn’t work for OnSave or OnCancel, I’ve also tried Launch(“URL”, {}, LaunchTarget.Replace) but it doesn’t open a new tab at all and doesn’t do anything. The current code I have for the app is below:
Button OnSelect:
Launch(“URL”)
OnSave:
SubmitForm(SharePointForm);
Launch(“URL”)
OnCancel:
ResetForm(SharePointForm);
Launch(“URL”)