← Back to team overview

dhis2-devs team mailing list archive

Re: Phone number - value type accepts characters

 

Hi,

A phone number value type should actually be strictly validated using a
user-defined string - and the default should be a 12-character string like
this: "0nn nnn nnnn"

Some country databases might use different number systems, and where
database content spans multiple countries the typical format would be "+cc
nn nnn nnnn" (with cc being the country code).

Although some fixed phone numbers will have extensions, those are from what
I've seen less and less common (and can be handled using a standard 3 or
4-character text value type)

Regards
Calle

On 2 April 2016 at 19:53, Prosper BT <ptb3000@xxxxxxxxx> wrote:

> Dear Team,
>
> It was good to introduce
> the phone number value type especially for the tracker, but it accepts
> characters, there is no validation on input.
>
> [image: Inline image 2]
>
>
> --
> Prosper Behumbiize, MPH
> Global HISP| University Of Oslo/HISP Uganda
> +256 752 751 776 | +256 776 139 139
> prosper@xxxxxxxxxxxxxx <ptb3000@xxxxxxxxx> | prosper@xxxxxxxxx | Skype:
> prospertb
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 

*******************************************

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedberg@xxxxxxxxx

Skype: calle_hedberg

*******************************************

PNG image


References