Community Health Toolkit

New update cannot take valid number

System cannot take a valid number +263788071136 when creating a person.

We use libphonenumber for phone number validations. It’s quite likely the version used in your setup doesn’t contain all the latest number patterns for various MNOs. You can relax the validation rigour in app_settings by choosing one of the following phone number validation options: full(default), partial (does a sanity-check on the phone number formatting), none (turn off validation). Here’s the link with more details: https://www.npmjs.com/package/libphonenumber-js

2 Likes

Thank you, solved it.

For posterity adding the link to the documentation for the phone_validation setting.

And the text for searchability:

"full”: full validation of a phone number for a region using length and prefix information.
"partial”: quickly guesses whether a number is a possible phone number by using only the length information, much faster than a full validation.
"none”: allows almost any values but still fails for any phone that contains a-z chars.

3 Likes