Browse Source

Set default select value

pull/183/head
baarkerlounger 3 years ago
parent
commit
7f5020ed87
  1. 2
      app/views/form/_select_question.html.erb

2
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"
%>

Loading…
Cancel
Save