How to Create a SharePoint Confirmation Popup Before Moving Files
Question details
The user wants to display a confirmation popup before moving files to specific folders in SharePoint Online to prevent incorrect file placement.

- 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.
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.
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.
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.
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.
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.

Utilize Power Automate for Post-Move Notifications
Create a cloud flow in Power Automate to notify administrators or trigger an approval process immediately after a file is moved.
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. Download WPS Office: Visit the official WPS Office website to download and install the application on your device.
- 2. Sign In for Cloud Features: Launch the application and sign in with your account to enable seamless cloud synchronization and file sharing.
- 3. Edit Existing Documents: Open your existing Microsoft Office documents directly in WPS Office to edit, format, and save them without compatibility issues.

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.




