The current validation for the "Contact Us" form is not functioning as expected, allowing invalid inputs such as '111' for the phone number field. We need to implement stricter validation rules to ensure that phone numbers meet the following criteria:
Must contain only numeric characters.
Should have a minimum length (e.g., 10 digits) and a maximum length (e.g., 15 digits).
Should not accept repeated digits (e.g., '1111111111') or any other invalid patterns.
By addressing these issues, we can ensure that users provide valid and usable contact information.
The current validation for the "Contact Us" form is not functioning as expected, allowing invalid inputs such as '111' for the phone number field. We need to implement stricter validation rules to ensure that phone numbers meet the following criteria:
Must contain only numeric characters. Should have a minimum length (e.g., 10 digits) and a maximum length (e.g., 15 digits). Should not accept repeated digits (e.g., '1111111111') or any other invalid patterns. By addressing these issues, we can ensure that users provide valid and usable contact information.