Browse Source

Add question to check answers page

pull/653/head
baarkerlounger 3 years ago
parent
commit
88a27b5c25
  1. 2
      app/models/form/question.rb
  2. 3
      config/forms/2021_2022.json
  3. 3
      config/forms/2022_2023.json

2
app/models/form/question.rb

@ -125,7 +125,7 @@ class Form::Question
labels = answer_options[value.to_s] labels = answer_options[value.to_s]
labels["value"] if labels labels["value"] if labels
when "select" when "select"
answer_options[value.to_s] answer_options[value.to_s] || answer_options[value]
else else
value.to_s value.to_s
end end

3
config/forms/2021_2022.json

@ -22,8 +22,7 @@
"scope": "all", "scope": "all",
"id": "id", "id": "id",
"label": "name" "label": "name"
}, }
"hidden_in_check_answers": true
} }
}, },
"derived": true, "derived": true,

3
config/forms/2022_2023.json

@ -26,8 +26,7 @@
"scope": "all", "scope": "all",
"id": "id", "id": "id",
"label": "name" "label": "name"
}, }
"hidden_in_check_answers": true
} }
}, },
"derived": true, "derived": true,

Loading…
Cancel
Save