Skip to content

Commit

Permalink
(fix) HTS Eligibility and HIV Enrollment forms (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet authored Oct 28, 2023
1 parent 30ae9aa commit 58e0b4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 9 additions & 2 deletions configuration/ampathforms/HIV_Enrollment.json
Original file line number Diff line number Diff line change
Expand Up @@ -1459,9 +1459,16 @@
"id": "tsTelephone",
"questionOptions": {
"concept": "160642AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "number",
"rendering": "text",
"min": "0"
}
},
"validators": [
{
"type": "js_expression",
"failsWhenExpression": "doesNotMatchExpression('^0([0-9](?:(?:[0-9][0-9])|(?:0[0-8])|(4[0-1]))[0-9]{6})$', tsTelephone)",
"message": "Invalid phone number, please enter number in the format 0000000000 example 0720200200"
}
]
},
{
"label": "Postal address",
Expand Down
4 changes: 0 additions & 4 deletions configuration/ampathforms/HTS_Eligibility_Screening.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,6 @@
"concept": "166606AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Social Contact"
},
{
"concept": "166517AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Needle Sharing"
},
{
"concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "None"
Expand Down

0 comments on commit 58e0b4d

Please sign in to comment.