Skip to content

Commit

Permalink
Merge pull request #1279 from akash70629/name
Browse files Browse the repository at this point in the history
FIX: Contact Us Form - Name Field Validation
  • Loading branch information
apu52 authored Oct 24, 2024
2 parents bf93568 + 3afcaab commit 40d4735
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,9 @@ <h1 class="heading1" style="color: #ff9bbd; font-family: 'Poppins', sans-serif;"
<form id="contact-form" class="contact-form">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required class="funky-input">
<input type="text" id="name" name="name" required class="funky-input" pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
</div>
<div class="form-group">
<label for="email">Email</label>
Expand Down Expand Up @@ -724,4 +726,4 @@ <h1 class="heading1" style="color: #ff9bbd; font-family: 'Poppins', sans-serif;"
</div>
</body>

</html>
</html>

0 comments on commit 40d4735

Please sign in to comment.