Others

Stop SharePoint Power Apps Form From Closing on Outside Click

Algirdas JasaitisAlgirdas Jasaitis Nov 4, 2026 868 views

Question details

Users need a way to stop a customized Power Apps form from automatically closing and losing data when clicking outside the form area in a SharePoint list.

How to Stop a SharePoint Power Apps Form From Closing on Outside Click
Product
SharePoint Online and Power Apps
Device & OS
not provided
Scenario
A user is filling out or interacting with a customized SharePoint list form via Power Apps and accidentally clicks outside the form pane.
Observed behavior
The Power Apps form closes immediately without saving any inputted data upon an outside click.
Before you start

Ensure you have the necessary 'Edit' permissions for the SharePoint list and the associated Power Apps form to apply formula changes and publish updates.

Solution 1Recommended

Review Power Apps Form Configuration and Formulas

Since this is a known default behavior of SharePoint Online panels, you must apply Power Apps community-tested formulas and configurations to intercept the close action.

By default, SharePoint list forms integrated with Power Apps operate in a slide-out panel that dismisses itself when focus is lost (such as clicking outside). You can modify form properties and variables to handle this behavior.

1
Open the form in Power Apps Studio

Navigate to your SharePoint list, click 'Integrate' in the top menu, select 'Power Apps', and then choose 'Customize forms'.

2
Implement an unsaved data variable

In your form's 'OnSelect' or 'OnChange' properties for input fields, add a formula like 'Set(varIsFormUnsaved, true)' to track when a user has started entering data.

3
Modify the SharePointIntegration control

Select the 'SharePointIntegration' control in the left tree view. Check the 'OnCancel' or 'OnSave' properties to utilize your variable to prompt the user or block the default 'RequestHide()' function if 'varIsFormUnsaved' is true.

4
Publish your changes

Once the workaround formulas are applied, go to 'File', click 'Save', and then hit 'Publish to SharePoint' to update the live list form.

Review Power Apps Form Configuration and Formulas
Workaround Limitations: Because Microsoft dictates the panel behavior on the SharePoint side, fully blocking an outside click is highly restricted. Implementing a confirmation dialog before data loss is the most reliable current approach.
Free Microsoft Office alternative

Need a Reliable Tool for Document Management? Try WPS Office

While SharePoint and Power Apps manage complex online lists and forms, WPS Office is a perfect, free, lightweight alternative for your daily document, spreadsheet, and presentation tasks. It offers an intuitive interface and flawless compatibility with standard office files.

Highly compatible with Microsoft Word, Excel, and PowerPoint formatsFree, lightweight, and installs in seconds without taxing system resourcesFamiliar tabbed user interface ensures a seamless migration with zero learning curveBuilt-in PDF editing and conversion tools to simplify complex document workflows
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SharePoint Power Apps form close when I click away?

This is a default behavior of SharePoint Online's user interface. When a customized Power Apps form opens in a side panel, SharePoint is programmed to dismiss the panel when the user clicks outside of it (loses focus).

Can I disable the outside click closure natively in SharePoint settings?

No, SharePoint currently does not provide a native toggle or simple setting in the list options to disable the outside-click dismissal for integrated Power Apps forms.

Will unsaved data always be lost if the form closes this way?

Generally, yes. If the form closes before the user clicks a save button that triggers the 'SubmitForm()' function, the session data is discarded. Utilizing variables to auto-save or prompt users can help prevent data loss.