SharePoint Document Issues

How to Create a SharePoint Confirmation Popup Before Moving Files

Muhammad TalhaMuhammad Talha Oct 14, 2026 868 views

Question details

The user wants to display a confirmation popup before moving files to specific folders in SharePoint Online to prevent incorrect file placement.

How to Create a SharePoint Confirmation Popup Before Moving Files
Product
SharePoint Online
Device & OS
not provided
Scenario
Moving files between folders in the modern SharePoint experience.
Observed behavior
There is no native confirmation dialog before a file is moved, and the classic Script Editor web part is not available to create a custom script popup in the modern interface.
Before you start

Verify your SharePoint site permissions and check whether you are using the modern or classic SharePoint experience, as customization options and available features differ significantly.

Solution 1Recommended

Use SharePoint Permissions and Metadata Validation

Implement native SharePoint permissions and metadata controls to restrict and validate file placements, minimizing the need for a pre-move popup.

Because modern SharePoint Online does not offer an out-of-the-box pre-move confirmation popup, the most effective native approach is to control where files can go through strict permissions and metadata validation.

1
Configure Folder Permissions

Navigate to your target Document Library, click the ellipsis next to the specific folder, select 'Manage access', and adjust the permissions to ensure only authorized users can move files into it.

2
Set Up Required Metadata

Go to the Library Settings and create required metadata columns. When users move files using the 'Move to' function, they will be prompted to fill out missing information if the target folder enforces specific metadata, acting as a functional checkpoint.

3
Implement Custom Views

Create specific views that filter documents based on their metadata or approval status, ensuring that improperly moved files remain hidden from the main view until validated.

Use SharePoint Permissions and Metadata Validation
Limitation of Native Features: This method does not produce a literal popup box before the move action, but it creates structural barriers that prevent accidental or unauthorized file placements.
Free Microsoft Office alternative

Manage and Edit Your Documents with WPS Office

If navigating complex SharePoint permissions and file workflows is slowing you down, consider using WPS Office for your local and cloud document editing needs. It is highly compatible with Microsoft formats and offers a lightweight, distraction-free environment.

  1. 1. Download WPS Office: Visit the official WPS Office website to download and install the application on your device.
  2. 2. Sign In for Cloud Features: Launch the application and sign in with your account to enable seamless cloud synchronization and file sharing.
  3. 3. Edit Existing Documents: Open your existing Microsoft Office documents directly in WPS Office to edit, format, and save them without compatibility issues.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Lightweight application with fast startup and offline editing capabilities.Built-in cloud sync features for easy file management and backup.Familiar tabbed interface to view and manage multiple files simultaneously.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use the classic Script Editor to add a confirmation popup in modern SharePoint?

No, the classic Script Editor web part is not supported in the modern SharePoint experience due to security and architectural changes. Customizing the modern interface requires using the SharePoint Framework (SPFx).

Does Power Automate support pre-move confirmation popups?

Power Automate flows generally run asynchronously after a file change occurs, meaning they cannot natively freeze the user interface to display a pre-move popup.

How can I prevent users from accidentally moving files to the wrong folder?

The best native approach is to enforce strict folder permissions, use required metadata to prompt users during the move process, or utilize document routing rules to ensure files are placed correctly.