From c8230d70bd93a1becc7fb3b6141a677e22958740 Mon Sep 17 00:00:00 2001 From: Marta Girdea <651980+marta-@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:58:03 -0500 Subject: [PATCH 1/2] CARDS-2483: Questionnaire designer: enable the "select" (dropdown) display mode for multiple choice questions --- .../src/questionnaireEditor/Question.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json b/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json index b73f91026e..904d714004 100644 --- a/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json +++ b/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json @@ -36,6 +36,12 @@ "type": "textOptions", "childrenType": "cards:AnswerOption" } + }, + "select" : { + "answerOptions" : { + "type": "textOptions", + "childrenType": "cards:AnswerOption" + } } } }, @@ -147,6 +153,12 @@ "childrenType": "cards:AnswerOption" } }, + "select" : { + "answerOptions" : { + "type": "numberOptions", + "childrenType": "cards:AnswerOption" + } + }, "slider": { "isRange" : "boolean", "minValueLabel" : "string", @@ -209,6 +221,12 @@ "childrenType": "cards:AnswerOption" } }, + "select" : { + "answerOptions" : { + "type": "numberOptions", + "childrenType": "cards:AnswerOption" + } + }, "slider": { "isRange" : "boolean", "minValueLabel" : "string", From 0c045e9180064c37d70b2ca7bc35dfc98b47eed5 Mon Sep 17 00:00:00 2001 From: Marta Girdea <651980+marta-@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:23:38 -0500 Subject: [PATCH 2/2] CARDS-2483 Questionnaire designer: enable the "select" (dropdown) display mode for multiple choice questions Added the `select` display mode option to vocabulary questions. --- .../src/main/frontend/src/questionnaireEditor/Question.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json b/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json index 904d714004..36dbf335f0 100644 --- a/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json +++ b/modules/data-entry/src/main/frontend/src/questionnaireEditor/Question.json @@ -352,6 +352,12 @@ "type": "textOptions", "childrenType": "cards:AnswerOption" } + }, + "select" : { + "answerOptions" : { + "type": "textOptions", + "childrenType": "cards:AnswerOption" + } } } },