Skip to content

Commit

Permalink
Fix for - TO date should not be earlier than follow up date
Browse files Browse the repository at this point in the history
  • Loading branch information
melkam-mekonnen committed Jul 26, 2024
1 parent 920ab57 commit 57b937d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/forms/followup.json
Original file line number Diff line number Diff line change
Expand Up @@ -2537,7 +2537,17 @@
],
"answers": []
},
"validators": []
"validators": [
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "myValue < new Date(followupDate)",
"message": "Transfer out date should not be earlier than Followup date"
}
]
}
]
}
Expand Down

0 comments on commit 57b937d

Please sign in to comment.