From 5f1c2b855c1ea5fb4eba0aafb7519e544b127957 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 5 Oct 2021 15:22:06 +0100 Subject: [PATCH] Render html from questions with example --- app/views/form/_radio_question.html.erb | 2 +- config/forms/2021_2022.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/form/_radio_question.html.erb b/app/views/form/_radio_question.html.erb index ed5d1317e..a74153456 100644 --- a/app/views/form/_radio_question.html.erb +++ b/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 %> diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index ee64f40b0..cc552eb9f 100644 --- a/config/forms/2021_2022.json +++ b/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:", "hint_text": "", "type": "radio", "answer_options": {