Skip to content

Error Message Appears Multiple Times Upon Form Submission #8

@Kavinesh11

Description

@Kavinesh11

Description: When the form is submitted with incorrect answers, the error message "You have so much to discover about Tamil Nadu" is appended multiple times instead of appearing just once.

Steps to Reproduce:

Fill out the form with incorrect answers for one or more questions.
Submit the form.
Submit the form again with the same or different incorrect answers.
Expected Behavior: The error message "You have so much to discover about Tamil Nadu" should appear only once, even if the form is submitted multiple times with incorrect answers.

Current Behavior: The error message is appended every time the form is submitted with incorrect answers, leading to multiple duplicate messages.

Severity: Medium
This issue affects the user experience by creating clutter and confusion on the webpage.

Suggested Fix:

Add logic to check if the error message already exists before appending it to the DOM.
Ensure the feedback container is cleared or updated without duplicating messages.
Test the form submission process thoroughly to confirm the error message appears only once in all scenarios.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions