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 Form w/ Error State

@MuneerMek

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


What are you most proud of, and what would you do differently next time?

I'm glad I was able to figure out how forms work, take notes and apply it to a project for the first time.

What challenges did you encounter, and how did you overcome them?

Overlaying the (!) symbol on the error state was challenging, and I had to adjust the relative placement for each element.

What specific areas of your project would you like help with?

My JS is pretty messy I'm sure, I'd like to know if there's a more efficient way I can write the same if-statements for every input element on the form.

Community feedback

Mir Sahil 120

@sahilmir1

Posted

I think your JS is fine. Even though your code is long it is still readable so, I would not call it messy. Having long lines of code is hard to avoid when writing vanilla JS. Maybe for your next challenge you can try using React or Vue.

1

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