From 7f5020ed87c9c16dd2ef68fa955f9e0cafaf37fb Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 22 Dec 2021 17:23:54 +0000 Subject: [PATCH] Set default select value --- app/views/form/_select_question.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/form/_select_question.html.erb b/app/views/form/_select_question.html.erb index c5b3e862b..fae3b46c0 100644 --- a/app/views/form/_select_question.html.erb +++ b/app/views/form/_select_question.html.erb @@ -6,6 +6,6 @@ caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, label: { text: question.header, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, hint: { text: question.hint_text&.html_safe }, - options: { disabled: [""] }, + options: { disabled: [""], selected: [@case_log.public_send(question.id) || ""] }, "data-controller": "accessible-autocomplete" %>