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 / List Power App not rep...
Power Apps
Suggested Answer

List Power App not replacing the current window on close

(0) ShareShare
ReportReport
Posted on by
I've got an issue on a couple of apps that are custom forms from a Sharepoint list. 
 
I'm using patch instead of form submit so when they click the Submit button it's doing this.
 
ResetForm(SharePointForm1);
//RequestHide();
Launch("https://site.sharepoint.com/sites/LC-MS");
Exit()
 
It's opening a new tab and launching the page, but it keeps the original tab open in the list view which the user is adamant they do not want users to see.  I can't figure out how to replace the window in a canvas app.  I tried using the {}, LaunchTarget.Replace but that does not work in a canvas app, the button doesn't do anything.
 
Help!!
Categories:
I have the same question (0)
  • Suggested answer
    MParikh Profile Picture
    492 Super User 2026 Season 1 on at
    HI @BG-15041758-0,

    Use RequestHide() after your Patch, not Launch() or Exit().
    For a SharePoint customized form, try this pattern:
     
    IfError(
        Patch(
            YourSharePointList,
            Defaults(YourSharePointList),
            {
                Title: DataCardValue_Title.Text
            }
        ),
        Notify("Save failed. Please try again.", NotificationType.Error),
        ResetForm(SharePointForm1);
        RequestHide()
    )

    Key point: LaunchTarget. "Replace" is not reliable in a SharePoint custom form. The form is hosted inside SharePoint, and Power Apps does not fully control the browser tab.
    RequestHide() is the supported function for hiding the SharePoint form after save. Microsoft also notes that it should be used in SharePoint custom forms so that SharePoint knows when to close the form.
    If they must land on a specific page, use SharePoint list settings/navigation, not the form button. From inside the custom form, closing the panel is the clean supported option.


    Thank you!
    Proud to be a Super User!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard