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: Contact number validation to accept exactly 10 digits #1500

Merged

Conversation

Mausumi134
Copy link
Contributor

Summary

This PR addresses the issue with the phone number input field in the Contact tab. It now properly validates the input by ensuring that exactly 10 digits are entered, preventing invalid entries.

Description

The phone number input field previously allowed users to enter more than 10 digits, which was incorrect behavior. This PR introduces validation logic that restricts the input to exactly 10 digits. If the user tries to submit more or fewer digits, an error message is shown. This was implemented by modifying the validation logic in the form handler.

Technical details:

Updated the form's input validation to limit the phone number to 10 digits.
Added error handling to provide user feedback when the input is invalid.

Images

Screenshot 2024-10-22 225428

Issue(s) Addressed

Closes #1498

Prerequisites

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
community-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 5:38pm

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for opensourcevillage ready!

Name Link
🔨 Latest commit 58d43c7
🔍 Latest deploy log https://app.netlify.com/sites/opensourcevillage/deploys/6717e2f943332d00087c3703
😎 Deploy Preview https://deploy-preview-1500--opensourcevillage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @Mausumi134! 🎉 , Thank you for submitting your pull request. Your contribution is valuable and we appreciate your efforts to improve our project. Our team will review your changes shortly.

We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines

@Its-Aman-Yadav Its-Aman-Yadav merged commit 42c5f09 into Its-Aman-Yadav:main Oct 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG:Contact Number Validation in Contact Tab
2 participants