We currently capture phone number of primary contact using Household Registration. What I have observed is that CHT restricts same phone number to be used on a different primary contacts. While this might sound logical, it restricts our CHVs from continuing with household registrations on the field.
Our CHVs have told us that some primary contacts do not have phone numbers. Hence, they ask the CHVs to save the phone number of the sheha ( head of the locality) who will then inform the client when a CHV wants to visit them or relay any info from CHV to client.
Therefore, can we drop the duplicate phone number check to fulfill this use case?
The tel type uses the phone widget which both validates the phone number’s format and ensures that no two contacts have the same phone number.
If we want to allow duplicate values, we can use a regular text/string field with a custom regex check to ensure that the telephone format is correct.
Example:
If I set appearance as numbers, I get an error message which I have set in the constraint message. In the pic below, I have two numbers. The primary phone works fine whereas secondary phone displays the constraint error message even when I add a valid phone number.
Can you please share what numbers are you trying? I can’t find any problem looking at the image of your form XLS. It works when I try with a similar form.
Here’s the screenshot. Notice that I have used the same digits in both input fields. The second field is rejecting it. This is the one with appearance = numbers.
That’s strange. Is it possible to share your XLS file using any file-sharing site?
Also please share any errors in the console and your test environment (CHT version, browser, OS).