Ramsey99 / Admin_Dashboard

Admin dashboard project for a bus transport organization
https://admin-dashboard-plum-theta.vercel.app
30 stars 71 forks source link

Form Validation Enhancement for "Contact Us" Page #64

Closed ayushbhjh closed 1 month ago

ayushbhjh commented 1 month ago

Currently, the "Contact Us" form lacks proper validation for user inputs, which may lead to submission errors and poor user experience. To improve the form's functionality and ensure valid user input, the following enhancements should be made:

Field Validation:

Ensure that required fields (e.g., Name, Email, and Message) cannot be left blank. Add real-time validation for the email field to ensure the input follows a valid email format (e.g., user@example.com). Implement a character limit for the message field (e.g., 500 characters). Error Handling:

Display error messages beneath fields that do not pass validation. Ensure that errors are cleared once valid input is provided. Provide clear, user-friendly error messages for invalid input (e.g., "Please enter a valid email address").

ayushbhjh commented 1 month ago

please assign this task to me