Skip to content

Conversation

@armaang1729
Copy link
Collaborator

Added loader to prevent multiple form submits

Description

This PR addresses Issue #1215, which reported that clicking the Submit button multiple times triggered multiple form submissions, resulting in duplicate entries.

To resolve this, a loader has been introduced that appears on form submission. While the loader is active, the form is disabled, preventing duplicate submits until the process is complete.

Related Issue

Motivation and Context

Multiple submissions from repeated clicks on the Submit button were leading to duplicate form entries, which negatively impacted both user experience and backend data integrity.
By introducing a loader that disables the form during submission, this fix ensures that only one submission is processed at a time.

How Has This Been Tested?

  • Added Cypress tests to verify that the loader class appears when the form is submitted.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

@codecov
Copy link

codecov bot commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

6 similar comments
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
page-has-heading-one moderate
target-size serious

1 similar comment
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
page-has-heading-one moderate
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

Copy link
Collaborator

@rismehta rismehta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check comments

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

1 similar comment
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

1 similar comment
@adobe-bot
Copy link

Accessibility Violations Found

Id Impact
aria-required-attr critical
empty-heading minor
label-title-only serious
target-size serious

@rismehta rismehta merged commit 3bbcc32 into dev Sep 24, 2025
7 checks passed
@rismehta rismehta deleted the FORMS-21742 branch September 24, 2025 09:30
rismehta added a commit that referenced this pull request Oct 8, 2025
* FORMS-21799 fixing aria-label to display plain text (#1715)

* FORMS-21799 fixing aria-label to display plain text

* FORMS-21799 correcting naming convention

* FORMS-21799 adding tests

* FORMS-21799 increasing test coverage

* FORMS-21799 increasing test coverage

---------

Co-authored-by: Shivam Agarwal <shivama@adobe.com>

* Merge pull request #1713 from adobe/FORMS-21742

Feat: added the loader to avoid multiple submits and tests

* Fixing js doc (#1721)

* @releng updating af-core (#1726)

* @releng updating af-core

* @releng updating af-core

---------

Co-authored-by: Shivam Agarwal <47965724+im-shiv@users.noreply.github.com>
Co-authored-by: Shivam Agarwal <shivama@adobe.com>
Co-authored-by: armaang1729 <armaang@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants