Browse Source

Render html from questions with example

pull/33/head
Kat 4 years ago
parent
commit
5f1c2b855c
  1. 2
      app/views/form/_radio_question.html.erb
  2. 2
      config/forms/2021_2022.json

2
app/views/form/_radio_question.html.erb

@ -1,5 +1,5 @@
<%= f.govuk_radio_buttons_fieldset question_key,
legend: { text: question["header"], size: "l" },
legend: { text: question["header"].html_safe, size: "l" },
hint: { text: question["hint_text"] },
small: (question["answer_options"].size > 5) do %>

2
config/forms/2021_2022.json

@ -337,7 +337,7 @@
"description": "",
"questions":{
"medical_conditions": {
"header": "Does anyone in the household have a physical condition, mental health condition, or other illness that they expect to last for 12 months or more?",
"header": "Does anyone in the household have any of the following that they expect to last for 12 months or more:<ul><li>Physical Condition</li><li>Mental Health Condition</li><li>Other Illness</li></ul>",
"hint_text": "",
"type": "radio",
"answer_options": {

Loading…
Cancel
Save