|
|
|
|
@ -362,6 +362,13 @@ private
|
|
|
|
|
inferred_answer["value"] if inferred_answer.present? |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
# every year currently visible should be specified. |
|
|
|
|
# however, form_handler.rb will still initialise the next form even if its not visible. |
|
|
|
|
# so we have a fallback to the latest year for these future years so all question have a question number. |
|
|
|
|
def get_question_number_from_hash(hash) |
|
|
|
|
hash[form.start_date.year] || hash[hash.keys.max] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
RADIO_YES_VALUE = { |
|
|
|
|
renewal: [1], |
|
|
|
|
postcode_known: [1], |
|
|
|
|
|