TechNodes2-0 / ElectiveHub

ElectiveHub is an Education Management System designed to simplify and enhance the management of student information and elective subject selection in educational institutions. It offers a suite of applications for students, teachers, and administrators, providing a user-friendly platform.
https://electivehub.onrender.com
MIT License
85 stars 123 forks source link

Adding validation for contact form #241

Open Samani-Humaira opened 1 month ago

Samani-Humaira commented 1 month ago

Description

Currently, the form only asks for a phone number and a message. When these two fields are filled out, the data is sent to the backend even if other fields, such as name and email, are left empty.

The form must only be submitted when the required fields such as name , email are provided to maintain the validation system consistency.

Hey @Nishitbaria assign me this issue under GSSOC'24

Screenshots

https://github.com/TechNodes2-0/ElectiveHub/assets/142516438/68d2ef2c-6800-4ce3-8543-8a1104c1d2f8

Additional information

No response

What browser are you seeing the problem on?

Chrome

Checklist

Samani-Humaira commented 1 month ago

@Nishitbaria I'd like to work on this issue. It seems like a valid concern that needs attention. Could you please assign it to me?