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

Sign-up form with Javascript validation and custom styles

@alimansoor-create

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


First time trying out custom validation with Javascript and Sass. Please check it out and leave some feedback.

Also, does Github Pages not allow forms? Because I get a 405 Not Allowed page when I submit the form. Is there any way to just be taken back to the form instead of it being submitted somewhere?

Community feedback

Sarah 835

@sarahc-dev

Posted

Hi! When I use your form it just refreshes the page - so not sure if you found a way to fix this. You can also use preventDefault() in the JavaScript where the form submits to prevent the default functionality and not submit the form.

Hope that helps :)

1

@alimansoor-create

Posted

@sazzledazzle Yesss I read somewhere that Github Pages doesn't allow POST so I change the form's method to GET. Not practical, I know, but also not really the point of this challenge so no problem!

Thanks for the help!

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