Design comparison
Solution retrospective
writing java script to handle the error state
What challenges did you encounter, and how did you overcome them?figuring out how to render the error state,
I used google and chatgpt to get it done
What specific areas of your project would you like help with?none.
Community feedback
- @Emynex4realPosted 26 days ago
First of all, congrats on completing the project! 🎉 Here are a few things I noticed that might help improve your work:
The the CSS still needs retouching so i can look better, the footer attribution is overlapping with the main section of the form and this is making the project look less appealing.
The onsubmit="return false" attribute on the button won't stop the form from actually submitting, as the button itself doesn’t directly trigger form submission; instead, addEventListener("submit") should handle this in script.js. You can add event.preventDefault() within that listener to stop the default submission behavior.
Currently, after successful validation, form values are not reset. Consider adding this.reset() after the alert() in the submit event listener. This will clear all form fields, including the radio button and checkbox selections.
After successfully submitting it shouldn't be an alert rather a popup created in the HTML.
These are just some ideas that came to mind, and hopefully, they'll be helpful as you continue improving your project!
Congrats again on the great work—keep coding and best of luck with your journey! 🚀
Marked as helpful0@omarnate1Posted 26 days ago@Emynex4real thanks for taking your time to point me to where and telling me how I can improve.
built that when I didn't know what I know now, I will do it all over again to correct all errors.
give me ur discord username so I can add you.
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