Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Multiple Submissions on Survey Forms #10624

Open
SinergiaCRM opened this issue Jan 24, 2025 · 0 comments
Open

Prevent Multiple Submissions on Survey Forms #10624

SinergiaCRM opened this issue Jan 24, 2025 · 0 comments
Labels
Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

Issue

When a user submits a survey response, if they click the "submit" button multiple times before the usual redirection occurs, the system records multiple identical responses.

Possible Fix

In the survey response form definition, disable the "submit" button within the form's onsubmit event to prevent multiple submissions.

Steps to Reproduce the Issue

1. Create a survey and make it public.
2. Access the survey link, complete it, and repeatedly press the "submit" button.
3. In the CRM, navigate to the survey and observe that it has recorded as many responses as the number of times the "submit" button was clicked.

Context

No response

Version

7.14.6

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

PHP 8.2

Operating System and Version

Ubuntu 23.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

1 participant