Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Leave Confirm

131 sites Security covered
View on drupal.org

This module prevents users from accidentally losing unsaved changes by displaying a confirmation pop-up when they try to leave a page. Administrators can configure which forms trigger this confirmation and manage permissions.

The Leave Confirm module for Drupal improves user experience by showing a popup confirmation dialog when users attempt to leave a page with unsaved changes in specified forms. This prevents accidental loss of data and allows users to confirm their intention before navigating away.

Administrators can configure the module for specific forms, control permissions, and manage settings easily through a user-friendly interface. It ensures critical form data is protected across the site without disrupting the workflow.

Installation

Features

  • Configurable Leave Confirm Dialogs: Display confirmation dialogs for specific forms to prevent accidental data loss.
  • Role-Based Permissions: Control which user roles can access and configure Leave Confirm settings.
  • Pre-Configured Defaults: Automatically adds points for common forms (user forms, node forms, webform forms) on installation.
  • Enable/Disable per Form: Toggle Leave Confirm functionality for individual form points as needed.
  • Add New Form Points: Easily add new forms to be protected via the module configuration.
  • User-Friendly Interface: Manage leave confirmation settings conveniently at admin/config/user-interface/leave-confirm-points.

Post-Installation

After installing the Leave Confirm module, follow these steps to set up and manage it:

  1. Enable the module from Extend in the Drupal admin interface.
  2. Configure leave confirmation for default forms or add new form points at admin/config/user-interface/leave-confirm-points.
  3. Set permissions for different user roles to control access to Leave Confirm settings at /admin/people/permissions/module/leave_confirm to manage configuration access.

The module is now ready to protect your forms from accidental navigation and unsaved changes.

Additional Requirements

  • Drupal Version: 10 or higher
  • Browser Support: Modern browsers with JavaScript enabled (Chrome, Firefox, Safari, Edge, etc.)

No additional modules or libraries are required. For best results, use a modern theme that supports standard form rendering.

Similar Projects

Troubleshooting & FAQ

  • Popup not appearing? Ensure the module is enabled and configured for the intended form IDs.
  • Permission issues? Verify that the user role has access to configure Leave Confirm settings.

Support

Please post bug reports, feature requests, or support inquiries to the Leave Confirm module issue queue.

Activity

Total releases
7
First release
Feb 2025
Latest release
7 months ago
Releases (12 mo)
4 ▲ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
1.1.9 Stable Dec 10, 2025
1.1.8 Stable Dec 10, 2025
1.1.7 Stable Nov 14, 2025
1.1.6 Stable Oct 8, 2025
1.1.5 Stable Feb 4, 2025
1.1.4 Stable Feb 4, 2025
1.1.3 Stable Feb 4, 2025