Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive page using Sass, Grid and email validation

mstanka 360

@mstanka

Desktop design screenshot for the Base Apparel coming soon page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi everyone. I need to fix my email validation... it doesn't work properly. Has someone an idea how to do it? Thanks :)

Community feedback

P
Matt Studdert 13,611

@mattstuddert

Posted

Hey, nice work on this project! What is it specifically that you're having issues with on the form validation? Everything worked fine for me when filling it in.

0

mstanka 360

@mstanka

Posted

@mattstuddert Thank you for your help!

0
P
Matt Studdert 13,611

@mattstuddert

Posted

@mstanka you're welcome!

0
mstanka 360

@mstanka

Posted

@mattstuddert Hi Matt, thank you! Actually, it works. The only issue is that the form can be submitted with an empty input.

0
P
Matt Studdert 13,611

@mattstuddert

Posted

@mstanka ah OK, have a look again this expression on line 18: (regEx.test(emailValue) !== true || emailValue === 0). For the second part you'd need to check emailValue.length against the number 0, not emailValue, as that would just be an empty string if the input is empty. Or you could shorten it to (regEx.test(emailValue) !== true || !emailValue).

Hope that helps!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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