---
title: "Discussion on \"How to create client-side form modal and validate it using JavaScript\" | Hashnode"
description: "Discussion on \"How to create client-side form modal and validate it using JavaScript\". Introduction\nIt can be so frustrating after filling numerous form fields on a web-page and just when you thought you are done, and hit the summit button, it refreshes the whole thing and then points out an error message. \nWouldn’t it be nice to autom..."
url: "https://hashnode.com/posts/how-to-create-client-side-form-modal-and-validate-it-using-javascript/61d6b4c59cea31197e02b07e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create client-side form modal and validate it using JavaScript](https://azubuike.hashnode.dev/how-to-create-client-side-form-modal-and-validate-it-using-javascript?utm_source=hashnode&utm_medium=feed)

Introduction It can be so frustrating after filling numerous form fields on a web-page and just when you thought you are done, and hit the summit button, it refreshes the whole thing and then points out an error message. Wouldn’t it be nice to autom...

Jan 6, 2022 · 4 min read · azubuike.hashnode.dev  
Updated Jan 10, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#web-design](https://hashnode.com/tag/web-design)
-   [#validation](https://hashnode.com/tag/validation)

## Written by

[Azubuike Duru](https://hashnode.com/@azubuikeduru)

@azubuikeduru · Lagos, Nigeria.

  
[View profile](https://hashnode.com/@azubuikeduru)

I write for Fun☺️, creativity at it peak. I’m also a Product Designer who loves color and simplicity.

## Responses 1

Markdown supported · ⌘↵ to post

[Elena Kazakova](https://hashnode.com/@N0vum)

[Jan 7, 2022](https://hashnode.com/posts/how-to-create-client-side-form-modal-and-validate-it-using-javascript/61d6b4c59cea31197e02b07e/comment/61d7e5888d56921d07b9019b)

I copied the codes but the program doesn't work 🙄

[Elena Kazakova](https://hashnode.com/@N0vum)

[Jan 7, 2022](https://hashnode.com/posts/how-to-create-client-side-form-modal-and-validate-it-using-javascript/61d6b4c59cea31197e02b07e/comment/61d7e5888d56921d07b9019b#reply-61d82c498d56921d07b90a9e)

[Azubuike Duru](https://hashnode.com/@azubuikeduru) thanks, sent by mail! :))

[Azubuike Duru](https://hashnode.com/@azubuikeduru)

[Jan 8, 2022](https://hashnode.com/posts/how-to-create-client-side-form-modal-and-validate-it-using-javascript/61d6b4c59cea31197e02b07e/comment/61d7e5888d56921d07b9019b#reply-61da175bcda0d0294b6970ee)

[Elena Kazakova](https://hashnode.com/@N0vum)

Just sent you an email of the debugged code. Check it out.

Or just click on the link [codepen.io/zubi\_duru/pen/RwLYowe](https://codepen.io/zubi_duru/pen/RwLYowe)

[Elena Kazakova](https://hashnode.com/@N0vum)

[Jan 10, 2022](https://hashnode.com/posts/how-to-create-client-side-form-modal-and-validate-it-using-javascript/61d6b4c59cea31197e02b07e/comment/61d7e5888d56921d07b9019b#reply-61db981f3ce4b2377adfe2ca)

[Azubuike Duru](https://hashnode.com/@azubuikeduru) Thanks! I've already forked it! 🍳 🙃
