Prevent multiple clicks of submit buttons

Created on 3 October 2024, about 2 months ago

Problem/Motivation

If the user clicks multiple times on the workflow buttons (e.g., "Publish"), the form may be submitted multiple times, triggering multiple actions such as sending repeated email notifications.

Steps to reproduce

Proposed resolution

We need to disable the submit button after the first click. I recommend attaching the core library core/drupal.form, which prevents double form submissions by handling double-clicks.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇯🇴Jordan Odai Atieh Amman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024