Skip to content

Commit

Permalink
Update delivery form time of rupture to enable form saving (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatheka authored Sep 30, 2024
1 parent edbb323 commit f503fa2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions configuration/ampathforms/Delivery.json
Original file line number Diff line number Diff line change
Expand Up @@ -689,13 +689,9 @@
"rendering": "date"
},
"validators": [
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "(new moment(deliveryDateTime)).isBefore((new moment(myValue)), 'day')",
"failsWhenExpression": "(new moment(deliveryDateTime)).isAfter((new moment(myValue)), 'day')",
"message": "Date of Rupture date should not be greater than the delivery date."
}
],
Expand Down

0 comments on commit f503fa2

Please sign in to comment.