hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
206 stars 264 forks source link

[BUG]: Real-Time Validation for Email and Phone Number in the Contact Form #1069

Open akande1 opened 2 months ago

akande1 commented 2 months ago

Description:

The "Contact Us" form currently lacks validation for both email and phone number fields. Users are not provided with real-time feedback when entering these details, which may result in submission errors if the input is incorrectly formatted.

Expected Outcomes:

  1. Email and Phone Number Validation: The form should validate the email and phone number inputs to ensure they meet standard formatting requirements (e.g., email in the form name@domain.com and phone number in a valid international or local format).
  2. Real-Time Feedback: Users should receive real-time validation feedback while typing, indicating whether the email or phone number format is valid or invalid.
  3. Error Handling: If the format is incorrect, an error message should appear, prompting the user to correct the input before submitting the form.

Acceptance Criteria:

link; https://kimiko-csharp.teams.hng.tech/contact-us video; https://www.awesomescreenshot.com/video/30684543?key=72772ea9799c68c7349fe488c230834d

AfubeAngel commented 2 months ago

I will work on this please