Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix phone number validation #313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gaganveerbawa
Copy link

📋 Description

This PR introduces validation for the phone number field in the contact form, ensuring only numeric input is allowed. Previously, the form accepted alphabetic characters in the phone number field, leading to potential errors. This update enhances user experience and reduces incorrect submissions.

🔨 Changes Made

Changed the input type from "tel" to "number" which would prompt to only allow numbers.

✅ Checklist

Before submitting the PR, please make sure you have completed the following:

  • [x ] My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings
  • I have tested it locally and it works fine.
  • Any dependent changes have been merged and published in downstream modules.

🏷️ Types of Changes

What type of changes does your code introduce? (Check all that apply)

  • Bug fix (non-breaking change which fixes an issue) 🐛
  • New feature (non-breaking change which adds functionality) ✨
  • UI enhancement (non-breaking change which enhances UI) 🎨
  • Documentation update 📚

🤝 Related Issues

📸 Screenshots

test.1.mov

Copy link

vercel bot commented Nov 9, 2024

@gaganveerbawa is attempting to deploy a commit to the mitulsonagara's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Contact Form Accepts Alphabetic Characters in Phone Number Field
1 participant