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.
[x] 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).
[x] My changes generate no new warnings
[x] I have tested it locally and it works fine.
[x] 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)
[x] 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) 🎨
📋 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:
🏷️ Types of Changes
What type of changes does your code introduce? (Check all that apply)
🤝 Related Issues
📸 Screenshots
https://github.com/user-attachments/assets/1ab62424-f853-4956-9496-ed7b75b64c3c