From f51920d1589f8c311b93f365a0e2ff7605106e0a Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 22 Aug 2023 15:03:39 +0100 Subject: [PATCH] Update conditionals --- app/models/form/lettings/questions/ppcodenk.rb | 2 +- config/forms/2021_2022.json | 2 +- config/forms/2022_2023.json | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/form/lettings/questions/ppcodenk.rb b/app/models/form/lettings/questions/ppcodenk.rb index 4135ecd7c..c8dbd24d0 100644 --- a/app/models/form/lettings/questions/ppcodenk.rb +++ b/app/models/form/lettings/questions/ppcodenk.rb @@ -8,7 +8,7 @@ class Form::Lettings::Questions::Ppcodenk < ::Form::Question @check_answers_card_number = 0 @hint_text = "This is also known as the household’s ‘last settled home’." @answer_options = ANSWER_OPTIONS - @conditional_for = { "ppostcode_full" => [1] } + @conditional_for = { "ppostcode_full" => [0] } @hidden_in_check_answers = { "depends_on" => [{ "ppcodenk" => 0 }, { "ppcodenk" => 1 }] } @question_number = 80 @disable_clearing_if_not_routed_or_dynamic_answer_options = true diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index ab944947e..086f201c2 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -6496,7 +6496,7 @@ }, "conditional_for": { "ppostcode_full": [ - 1 + 0 ] }, "hidden_in_check_answers": { diff --git a/config/forms/2022_2023.json b/config/forms/2022_2023.json index 8d5f674f3..f8eb4d4c5 100644 --- a/config/forms/2022_2023.json +++ b/config/forms/2022_2023.json @@ -6388,16 +6388,16 @@ "type": "radio", "disable_clearing_if_not_routed_or_dynamic_answer_options": true, "answer_options": { - "1": { + "0": { "value": "Yes" }, - "0": { + "1": { "value": "No" } }, "conditional_for": { "ppostcode_full": [ - 1 + 0 ] }, "hidden_in_check_answers": { @@ -6425,7 +6425,7 @@ }, "inferred_check_answers_value": [{ "condition": { - "ppcodenk": 0 + "ppcodenk": 1 }, "value": "Not known" }]