Skip to content

Commit

Permalink
Merge pull request #1265 from akash70629/validation
Browse files Browse the repository at this point in the history
💥FIX : Name validation added on Feedback form page
  • Loading branch information
vishanurag authored Nov 11, 2024
2 parents 37130b9 + 3683dd8 commit 4cd8b33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ <h2>We Value Your Feedback</h2>

<!-- Form elements -->
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
<input type="text" id="name" name="name" placeholder="Enter your name" required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')">
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
<label for="rating">Rating:</label>
Expand Down

0 comments on commit 4cd8b33

Please sign in to comment.