ANSHIKA-26 / WordWise

Blogging website
https://wordwise-k9ho.onrender.com/
49 stars 174 forks source link

Validation of Leave Comment form in "Leading Blog " Section #753

Open MasirJafri1 opened 1 hour ago

MasirJafri1 commented 1 hour ago

Form Validation Missing: The current form lacks validation for the fields Name, Email, Website, and Message. As a result, if all fields are left empty, the form still gets submitted and the data is stored in Local Storage without any checks.

Screenshot 2024-10-11 094950 Screenshot 2024-10-11 095201

Contribution I can do

1) Will Validate the form as follows:

  Name (required)
  Email (should follow a valid email format)
  Website (optional but should follow a valid URL format if provided)
  Message (required) 

2) Will Also Add toast popUp for Successful submission or an error

github-actions[bot] commented 1 hour ago

Thanks @MasirJafri1 for raising this issue! We'll look into it.We hope you have made sure that a similar issue doesnt exist , if it does, kindly ask to be assigned on that issue