Skip to content

Commit

Permalink
Validated future dates on all date fields (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckote authored Sep 19, 2023
1 parent 45f631d commit 1a3a49f
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions configuration/ampathforms/PrEP_INITIATION.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,12 @@
"concept": "160534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"validators": [],
"validators": [
{
"type": "date",
"allowFutureDates": "false"
}
],
"hide": {
"hideWhenExpression": "isEmpty(clientType) || clientType != '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
Expand All @@ -389,7 +394,12 @@
"concept": "160555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"validators": [],
"validators": [
{
"type": "date",
"allowFutureDates": "false"
}
],
"hide": {
"hideWhenExpression": "isEmpty(clientType) || clientType != '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
Expand All @@ -402,7 +412,12 @@
"concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"validators": [],
"validators": [
{
"type": "date",
"allowFutureDates": "false"
}
],
"hide": {
"hideWhenExpression": "isEmpty(clientType) || clientType != '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
Expand Down

0 comments on commit 1a3a49f

Please sign in to comment.