diff --git a/README.md b/README.md index d8562ceb8..a6407ea3a 100644 --- a/README.md +++ b/README.md @@ -66,11 +66,11 @@ The JSON should follow the structure: snake case question name string: { header: string, hint_text: string, - type: [text / numeric / radio / select / date ], + type: [text / numeric / radio / checkbox / date ], min: integer, (numeric only), max: integer, (numeric only), step: integer (numeric only), - answer_options: { (select and radio only) + answer_options: { (checkbox and radio only) "0": string, "1": string } diff --git a/app/views/form/_select_question.html.erb b/app/views/form/_checkbox_question.html.erb similarity index 100% rename from app/views/form/_select_question.html.erb rename to app/views/form/_checkbox_question.html.erb diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 33a2884a5..c6f157be7 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -361,7 +361,7 @@ "accessibility_requirements": { "header": "Are any of these affected by their condition or illness?", "hint_text": "Select all that apply", - "type": "select", + "type": "checkbox", "answer_options": { "0": "Fully wheelchair accessible housing", "1": "Wheelchair access to essential rooms", @@ -381,7 +381,7 @@ "condition_effects": { "header": "Are any of these affected by their condition or illness?", "hint_text": "Select all that apply", - "type": "select", + "type": "checkbox", "answer_options": { "0": "Vision - such as blindness or partial sight", "1": "Hearing - such as deafness or partial hearing", @@ -1544,7 +1544,7 @@ "reasonable_preference_reason": { "header": "Why were they given reasonable preference?", "hint_text": "Select all that apply", - "type": "select", + "type": "checkbox", "answer_options": { "0": "Homeless or about to lose their home (within 56 days)", "1": "Living in insanitary or overcrowded or unsatisfactory housing",