From 7a720b53801ae71f48df9009e4ae21e748a49f8f Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Mon, 5 Aug 2024 15:29:18 +0300 Subject: [PATCH] Corrected hideLogics to apply for a checkbox questions --- src/forms/hei-followup.json | 4 ++-- src/forms/intake-a.json | 6 +++--- src/forms/intake-b.json | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/forms/hei-followup.json b/src/forms/hei-followup.json index 154f4eb..4d97b6a 100644 --- a/src/forms/hei-followup.json +++ b/src/forms/hei-followup.json @@ -470,8 +470,8 @@ "concept": "00ed2ac0-aacc-402b-b587-7a4bbe1321d5" }, "hide": { - "hideWhenExpression": "mothersBreastCondition !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, + "hideWhenExpression": "!includes('mothersBreastCondition', '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, "validators": [ { "type": "js_expression", diff --git a/src/forms/intake-a.json b/src/forms/intake-a.json index 2ba42ec..9276355 100644 --- a/src/forms/intake-a.json +++ b/src/forms/intake-a.json @@ -982,7 +982,7 @@ "id": "hivDisclosure" }, { - "label": "Who knows your/your child's HIV positive status", + "label": "Who knows your child's HIV positive status", "type": "obs", "required": false, "id": "whoKnows", @@ -1039,8 +1039,8 @@ "concept": "f622a8b2-55a1-4194-8579-3470609eb626" }, "hide": { - "hideWhenExpression": "whoKnows !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, + "hideWhenExpression": "!includes('whoKnows', '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, "validators": [ { "type": "js_expression", diff --git a/src/forms/intake-b.json b/src/forms/intake-b.json index ffa8a2c..a1ca848 100644 --- a/src/forms/intake-b.json +++ b/src/forms/intake-b.json @@ -2311,9 +2311,9 @@ "message": "Please use a maximum of 50 characters" } ], - "hide": { - "hideWhenExpression": "whyEligibleForART !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, + "hide": { + "hideWhenExpression": "!includes('whyEligibleForART', '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, "id": "otherReasonWhyEligible" } ]