From bc0de14e977b31670f33b6db374657cd66cbd6be Mon Sep 17 00:00:00 2001 From: Hope Tambala Date: Tue, 10 Nov 2020 18:29:42 -0500 Subject: [PATCH 1/2] fix: remove validation on environmental health config --- .../configs/envhealth.config.js | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/domains/DataCollection/Forms/SupplementaryForm/configs/envhealth.config.js b/domains/DataCollection/Forms/SupplementaryForm/configs/envhealth.config.js index b47cc06f7..5d7c1a30b 100644 --- a/domains/DataCollection/Forms/SupplementaryForm/configs/envhealth.config.js +++ b/domains/DataCollection/Forms/SupplementaryForm/configs/envhealth.config.js @@ -29,7 +29,7 @@ const configArray = { value: 'moreThan10' } ], - validation: true + validation: false }, { label: 'environmentalHealth.yearsLived.house', @@ -58,14 +58,14 @@ const configArray = { value: 'moreThan10' } ], - validation: true + validation: false }, { label: 'environmentalHealth.biggestProblemComm', formikKey: 'biggestproblemofcommunity', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'environmentalHealth.waterAccess.label', @@ -98,7 +98,7 @@ const configArray = { value: 'Never' } ], - validation: true + validation: false }, { label: 'environmentalHealth.typeOfWater.label', @@ -119,7 +119,7 @@ const configArray = { value: 'filtered' } ], - validation: true + validation: false }, { label: 'environmentalHealth.bathroomAccess', @@ -136,7 +136,7 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'environmentalHealth.latrineAccess', @@ -153,7 +153,7 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'environmentalHealth.clinicAccess', @@ -170,35 +170,35 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'environmentalHealth.medicalProblemsGo', formikKey: 'medicalproblemswheredoyougo', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'environmentalHealth.dentalProblemsGo', formikKey: 'dentalproblemswheredoyougo', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'environmentalHealth.timesPerWeekTrash', formikKey: 'timesperweektrashcollected', value: '', fieldType: 'numberInput', - validation: true + validation: false }, { label: 'environmentalHealth.trashBetweenPickups', formikKey: 'wheretrashleftbetweenpickups', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'environmentalHealth.houseOwnership', @@ -215,7 +215,7 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'environmentalHealth.floorCondition.label', @@ -240,7 +240,7 @@ const configArray = { value: 'cementWorking' } ], - validation: true + validation: false }, { label: 'environmentalHealth.roofCondition.label', @@ -257,7 +257,7 @@ const configArray = { value: 'working' } ], - validation: true + validation: false }, { label: 'environmentalHealth.typeStove.label', @@ -278,7 +278,7 @@ const configArray = { value: 'openfire-noVentilation' } ], - validation: true + validation: false }, { label: 'environmentalHealth.houseMaterials.label', @@ -303,7 +303,7 @@ const configArray = { value: 'block' } ], - validation: true + validation: false }, { label: 'environmentalHealth.electricityAccess.label', @@ -324,7 +324,7 @@ const configArray = { value: 'always' } ], - validation: true + validation: false }, { label: 'environmentalHealth.foodSecurity', @@ -345,7 +345,7 @@ const configArray = { value: 'not_sure' } ], - validation: true + validation: false }, { label: 'environmentalHealth.govAssistance.label', @@ -366,21 +366,21 @@ const configArray = { value: 'other' } ], - validation: true + validation: false }, { label: 'environmentalHealth.numberIndividualsHouse', formikKey: 'numberofIndividualsLivingintheHouse', value: '', fieldType: 'numberInput', - validation: true + validation: false }, { label: 'environmentalHealth.numberChildrenUnder5', formikKey: 'numberofChildrenLivinginHouseUndertheAgeof5', value: '', fieldType: 'numberInput', - validation: true + validation: false }, ] }; From 192d2092bd55f8441b228ccf985a64fc463178ab Mon Sep 17 00:00:00 2001 From: Hope Tambala Date: Tue, 10 Nov 2020 20:11:54 -0500 Subject: [PATCH 2/2] chore: remove validation --- .../configs/medical-evaluation.config.js | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/domains/DataCollection/Forms/SupplementaryForm/configs/medical-evaluation.config.js b/domains/DataCollection/Forms/SupplementaryForm/configs/medical-evaluation.config.js index 6c38faf07..dc98f36b4 100644 --- a/domains/DataCollection/Forms/SupplementaryForm/configs/medical-evaluation.config.js +++ b/domains/DataCollection/Forms/SupplementaryForm/configs/medical-evaluation.config.js @@ -18,7 +18,7 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'evaluationMedical.chronicDiabetes', @@ -35,7 +35,7 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'evaluationMedical.chronicOther', @@ -52,7 +52,7 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'evaluationMedical.doctor', @@ -69,14 +69,14 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'global.notes', formikKey: 'received_treatment_notes', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'evaluationMedical.statusOfHealth.label', @@ -105,7 +105,7 @@ const configArray = { value: 'other' } ], - validation: true + validation: false }, { label: 'evaluationMedical.partOfBody.label', @@ -154,14 +154,14 @@ const configArray = { value: '' } ], - validation: true + validation: false }, { label: 'evaluationMedical.partOfBodyDescription', formikKey: 'part_of_body_description', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'evaluationMedical.duration.label', @@ -186,7 +186,7 @@ const configArray = { value: 'after_5_years' } ], - validation: true + validation: false }, { label: 'evaluationMedical.problemSuddenness.label', @@ -207,7 +207,7 @@ const configArray = { value: 'gradually' } ], - validation: true + validation: false }, { label: 'evaluationMedical.progressionOfCondition.label', @@ -228,14 +228,14 @@ const configArray = { value: 'constant' } ], - validation: true + validation: false }, { label: 'global.notes', formikKey: 'notes', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'evaluationMedical.generalHealthConsult', @@ -252,7 +252,7 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'evaluationMedical.surgicalRequired', @@ -269,14 +269,14 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'evaluationMedical.yourGuess', formikKey: 'AssessmentandEvaluation_Surgical_Guess', value: '', fieldType: 'input', - validation: true + validation: false }, { label: 'evaluationMedical.immediateFollowupRequired', @@ -293,14 +293,14 @@ const configArray = { value: 'No' } ], - validation: true + validation: false }, { label: 'evaluationMedical.plan', formikKey: 'planOfAction', value: '', fieldType: 'input', - validation: true + validation: false }, ] };