Description
Form validation is incomplete or not functioning as expected for the following features:
- "Send Us a Message" Form: The validation for required fields, email format, and message content is insufficient or missing.
- Quiz on the Main Page: The quiz lacks proper validation to ensure all required questions are answered before submission and to prevent invalid input formats.
Steps to Reproduce
For "Send Us a Message" Form:
- Navigate to the "Send Us a Message" section.
- Attempt to submit the form without filling out required fields (e.g., name, email, or message).
- Enter invalid email formats or incomplete messages.
- Observe that the form either submits or does not provide meaningful error messages.
For the Quiz on the Main Page:
- Navigate to the main page and start the quiz.
- Skip some questions or provide invalid input (e.g., entering text in a numerical field).
- Attempt to submit the quiz.
- Observe that there are no alerts or error messages for incomplete or invalid inputs.
Expected Behavior
Current Behavior
Affected Modules/Components
- "Send Us a Message" form
- Quiz feature on the main page
Severity
Medium
This issue affects usability and user experience but does not break critical functionality.
Status
Pending
Form validation logic needs to be implemented or improved.
Suggested Fix
-
General Validation:
- Use client-side validation with JavaScript or React (if applicable).
- Implement server-side validation as a fallback for security purposes.
-
"Send Us a Message" Form:
- Make fields like name, email, and message mandatory.
- Use regular expressions to validate the email format.
- Display error messages inline, next to the respective fields.
-
Quiz on the Main Page:
- Ensure all questions have a required attribute (or similar) to enforce completion.
- Validate input types (e.g., numeric fields, dropdowns).
- Display warnings or error messages for skipped or invalid fields.
-
Testing:
- Test the form and quiz on multiple browsers and devices.
- Use mock data to verify validation behaviors.
Description
Form validation is incomplete or not functioning as expected for the following features:
Steps to Reproduce
For "Send Us a Message" Form:
For the Quiz on the Main Page:
Expected Behavior
For the "Send Us a Message" Form:
name@example.com).For the Quiz on the Main Page:
Current Behavior
"Send Us a Message" Form:
Quiz on the Main Page:
Affected Modules/Components
Severity
Medium
This issue affects usability and user experience but does not break critical functionality.
Status
Pending
Form validation logic needs to be implemented or improved.
Suggested Fix
General Validation:
"Send Us a Message" Form:
Quiz on the Main Page:
Testing: