← Back to team overview

dhis2-devs team mailing list archive

Re: [Bug 704973] Re: There must be some validations for Phone Number field in User and Organisationunit module

 

Hi everyone,

Sorry Lars, may I reopen this discussion thread again? Just saying quickly
not too much.

My idea for Regex Validation blueprint is that. Why don't we take advantage
of the i18n_XXX.properties as currently. Says other words, we will develop a
library/resource files as same as the properties file which is being used in
DHIS2 for storing the value of regex of each property such as "name",
"shortname", "phone number", etc...

The construction of key regex would be liked *regex.nameproperty *= *
value_of_regex*.

For example at validation for the name of excel file like:

regex.name       = [a-zA-Z][\\w\\s\\d.]{5,50}\\.xl(?:sx|s)

Thanks.

-- 
Good heath !

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/704973

Title:
  There must be some validations for Phone Number field in User and
  Organisationunit module

Status in DHIS 2 - District Health Information Software:
  Confirmed

Bug description:
  There must be some validations for Phone Number field in User and
  OrganisationUnit module, Special characters can also be used for Phone
  Number.


References