Browse Source

Update conditionals

pull/1854/head
Kat 3 years ago
parent
commit
f51920d158
  1. 2
      app/models/form/lettings/questions/ppcodenk.rb
  2. 2
      config/forms/2021_2022.json
  3. 8
      config/forms/2022_2023.json

2
app/models/form/lettings/questions/ppcodenk.rb

@ -8,7 +8,7 @@ class Form::Lettings::Questions::Ppcodenk < ::Form::Question
@check_answers_card_number = 0 @check_answers_card_number = 0
@hint_text = "This is also known as the household’s ‘last settled home’." @hint_text = "This is also known as the household’s ‘last settled home’."
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { "ppostcode_full" => [1] } @conditional_for = { "ppostcode_full" => [0] }
@hidden_in_check_answers = { "depends_on" => [{ "ppcodenk" => 0 }, { "ppcodenk" => 1 }] } @hidden_in_check_answers = { "depends_on" => [{ "ppcodenk" => 0 }, { "ppcodenk" => 1 }] }
@question_number = 80 @question_number = 80
@disable_clearing_if_not_routed_or_dynamic_answer_options = true @disable_clearing_if_not_routed_or_dynamic_answer_options = true

2
config/forms/2021_2022.json

@ -6496,7 +6496,7 @@
}, },
"conditional_for": { "conditional_for": {
"ppostcode_full": [ "ppostcode_full": [
1 0
] ]
}, },
"hidden_in_check_answers": { "hidden_in_check_answers": {

8
config/forms/2022_2023.json

@ -6388,16 +6388,16 @@
"type": "radio", "type": "radio",
"disable_clearing_if_not_routed_or_dynamic_answer_options": true, "disable_clearing_if_not_routed_or_dynamic_answer_options": true,
"answer_options": { "answer_options": {
"1": { "0": {
"value": "Yes" "value": "Yes"
}, },
"0": { "1": {
"value": "No" "value": "No"
} }
}, },
"conditional_for": { "conditional_for": {
"ppostcode_full": [ "ppostcode_full": [
1 0
] ]
}, },
"hidden_in_check_answers": { "hidden_in_check_answers": {
@ -6425,7 +6425,7 @@
}, },
"inferred_check_answers_value": [{ "inferred_check_answers_value": [{
"condition": { "condition": {
"ppcodenk": 0 "ppcodenk": 1
}, },
"value": "Not known" "value": "Not known"
}] }]

Loading…
Cancel
Save