Form validation with JS and responsive page with CSS flex
Design comparison
Solution retrospective
What did you think? Did you find it cool? Leave your review and improvement tips.
Community feedback
- Account deleted
Hello @Joatancarlos, form validation is not easy so good job with this component : ) I opened your repo and I would like to notice that there is no RegEx validation for the inputs except for the email input. If I try to input just one number as a Name or Lastname nothing is going to block the submitting. Is it made on purpose ? Just adding adding a few more functions validating the other inputs as you did with
validateEmail
function would increment the detection of these cases. This resource from MDN Form Validation gives a great overall knowledge different methods in client side validation. Best wishes!0@JoatancarlosPosted over 2 years ago@alexcumplido I didn't validate the name inputs because the project didn't require it. Note that the error message refers to the empty input and not about data validation. Only in the email that the data was verified. Any questions, I am available! ;)
1Account deletedHey @Joatancarlos, thanks for the reply. I understand your choice then, It is true that the requirements did not ask for it, great to know it.
0@JoatancarlosPosted over 2 years ago@alexcumplido Thanks for your feedback!! See you in other projects
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord