opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
81 stars 62 forks source link

Trim all user input in form fields #6452

Open rikukissa opened 5 months ago

rikukissa commented 5 months ago

Description

In Cameroon production, a lot of the data point are suffixed with white space. We should trim these off and aim to save data in as clean format as possible.

"motherFirstNames" : "Riku ",
"motherFamilyName" : "Rouvila",
"motherDoB" : "1984-08-11",
"motherIdentifier" : "ABC-123",
"fatherFirstNames" : "Riku",
"fatherFamilyName" : "Rouvila",
"fatherDoB" : "1980-01-10",
"informantFirstNames" : "Pyry ",
"informantFamilyName" : "Rouvila ",
euanmillar commented 5 months ago

Need a migration for Hearth and ES and a trim function in either client or gateway

rikukissa commented 3 months ago

Some countries also want to customise formatting like capitalising names or uppercasing them. Let's do that here as well