Confirmation Prompt on Form Submit
Overview
The Confirmation Prompt on Form Submit Plugin enhances form submission processes by introducing a confirmation prompt using SweetAlert2. This plugin hides the original submit button, clones it, and attaches a click event to the cloned button. When clicked, a confirmation dialog appears, asking the user to confirm their submission. If confirmed, the original submit button is triggered, ensuring user intent before form submission. The plugin leverages jQuery for DOM manipulation and SweetAlert2 for the confirmation dialog.
Use Cases
- This plugin is ideal for any application where form submissions need an extra layer of user confirmation, such as sensitive data submissions, financial transactions, or any scenario where accidental submissions must be avoided.
Installing the plugin
Prerequisites:
- The page must have a form component
- Javascript must be enabled (applicable if your're on trial account)
Step-by-Step Installation:
Removing the Plugin
To remove the plugin, find the Javascript code that is surrounted with a comment for the plugin name and delete the code. Do the same for the CSS as well.
We'd love to hear your feedback.