Skip to content

Mobile number field incorrectly validates numbers for multiple country codes #12

@yeswanth-xinthe

Description

@yeswanth-xinthe

The mobile number input field in the app is currently only accepting 10 digits, regardless of the country code selected.
As a result, users from countries where valid mobile numbers are not 10 digits (e.g., Australia, Singapore, UAE) cannot register, and the app shows an error even when a correct mobile number is entered.

the issue applies for fields in

  1. Patient details -> Patient Mobile Number *
  2. Companions -> Mobile Number *

Steps to Reproduce
Open the registration form.
Select a country code other than +91 (India), e.g., +61 (Australia), +65 (Singapore), or +971 (UAE).
Enter a valid mobile number according to that country’s format.
Submit the form.

Expected Result
The form should accept valid mobile numbers for the selected country code:
+44 (UK) → 10 digits
+1 (USA/Canada) → 10 digits
+61 (Australia) → 9 digits
+65 (Singapore) → 8 digits
+971 (UAE) → 9 digits
+91 (India) → 10 digits

Actual Result
The form throws an error if the mobile number is not exactly 10 digits, even when the number is valid for the selected country code.

Impact
Users from affected countries cannot register
Blocks legitimate registrations
Negative user experience and increased support requests

Image Image Image

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions