Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Leave Confirm

136 sites Security covered Drupal 10–11
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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Feb 2025
Latest release
8 months ago
Releases (12 mo)
4 ▲ from 3
Maintenance
Slowing

Release Timeline

Releases

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