How to open link in same tab from Power App / SharePoint list

iwufjd 0 Reputation points
2023-10-02T18:38:35.4333333+00:00

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”)

PowerApp_Screenshot

PowerAppButton_Screenshot

PowerAppSaveCancel_Screenshot

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,868 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ChengFeng - MSFT 5,010 Reputation points Microsoft Vendor
    2023-10-03T02:25:20.9833333+00:00

    Hi @iwufjd

    Thanks for letting us know your user experience. According to your case description, I do understand how frustrated you are now.

     

    When I received the case, I searched a lot of documents did a lot of researches. And I feel regretful to inform you that it turns out to be a by-design one.

     

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-param#targetUser's image

    And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.

     

    feedback
    https://feedbackportal.microsoft.com/feedback/


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng