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

RSESPRT-246: Prevent user from submitting review multiple times #278

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

olayiwola-compucorp
Copy link
Contributor

@olayiwola-compucorp olayiwola-compucorp commented May 13, 2024

Overview

This PR disables the submit button post-click so that the user is prevented from multiple click/submission as this ends up breaking the form submission.

Also, handle error when a user attempts to submit a review without an activity ID.

Before

User can click on award submit multiple times

After

User can only click on award submit once

Screenshot 2024-05-13 at 14 01 38

Before

Drupal white page error is displayed if the user attempts to submit a review without an activity ID
Screenshot 2024-05-31 at 12 08 37

After

Custom error message is displayed if the user attempts to submit a review without an activity ID
Screenshot 2024-05-31 at 12 07 48

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.

2 participants