From f503fa27f50194f37ba044e9ed532bdfd1abc926 Mon Sep 17 00:00:00 2001 From: mmatheka <99263785+mmatheka@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:25:34 +0300 Subject: [PATCH] Update delivery form time of rupture to enable form saving (#815) --- configuration/ampathforms/Delivery.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configuration/ampathforms/Delivery.json b/configuration/ampathforms/Delivery.json index 273cf996..e4f344f5 100644 --- a/configuration/ampathforms/Delivery.json +++ b/configuration/ampathforms/Delivery.json @@ -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." } ],