diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index e3b1df912..fac033857 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -1041,6 +1041,11 @@ "subsections": { "household_characteristics": { "label": "Household characteristics", + "depends_on": [ + { + "setup": "completed" + } + ], "pages": { "declaration": { "header": "Department for Levelling Up, Housing & Communities privacy notice", @@ -1063,7 +1068,6 @@ "header": "", "description": "", "questions": { - "hhmemb": { "check_answer_label": "Number of household members", "header": "How many people live in the household for this letting?", @@ -1074,7 +1078,8 @@ "step": 1, "width": 2 } - }, "depends_on": [{"declaration": 1, "setup": "completed"}] + }, + "depends_on": [{ "declaration": 1 }] }, "no_females_pregnant_household_lead_hhmemb_value_check": { "depends_on": [{ "no_females_in_a_pregnant_household?": true }], @@ -1111,16 +1116,12 @@ "1": { "value": "No" } - }, "depends_on": [{"declaration": 1}] + } } } }, "females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check": { - "depends_on": [ - { - "female_in_pregnant_household_in_soft_validation_range?": true - } - ], + "depends_on": [{ "female_in_pregnant_household_in_soft_validation_range?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1154,7 +1155,7 @@ "1": { "value": "No" } - }, "depends_on": [{"declaration": 1}] + } } } }, @@ -1203,7 +1204,8 @@ "value": "Not known" } } - }, "depends_on": [{ "declaration": 1 }] + }, + "depends_on": [{ "declaration": 1 }] }, "no_females_pregnant_household_lead_age_value_check": { "depends_on": [{ "no_females_in_a_pregnant_household?": true }], @@ -1240,16 +1242,12 @@ "1": { "value": "No" } - }, "depends_on": [{"declaration": 1}] + } } } }, "females_in_soft_age_range_in_pregnant_household_lead_age_value_check": { - "depends_on": [ - { - "female_in_pregnant_household_in_soft_validation_range?": true - } - ], + "depends_on": [{ "female_in_pregnant_household_in_soft_validation_range?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1283,7 +1281,7 @@ "1": { "value": "No" } - }, "depends_on": [{"declaration": 1}] + } } } }, @@ -1314,7 +1312,8 @@ } } } - }, "depends_on": [{ "declaration": 1 }] + }, + "depends_on": [{ "declaration": 1 }] }, "no_females_pregnant_household_lead_value_check": { "depends_on": [{ "no_females_in_a_pregnant_household?": true }], @@ -1351,16 +1350,12 @@ "1": { "value": "No" } - }, "depends_on": [{"declaration": 1}] + } } } }, "females_in_soft_age_range_in_pregnant_household_lead_value_check": { - "depends_on": [ - { - "female_in_pregnant_household_in_soft_validation_range?": true - } - ], + "depends_on": [{ "female_in_pregnant_household_in_soft_validation_range?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1394,7 +1389,7 @@ "1": { "value": "No" } - }, "depends_on": [{"declaration": 1}] + } } } }, @@ -1431,7 +1426,8 @@ } } } - }, "depends_on": [{"declaration": 1}] + }, + "depends_on": [{ "declaration": 1 }] }, "lead_tenant_ethnic_background_arab": { "header": "", @@ -1452,11 +1448,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 4,"declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 4 }] }, "lead_tenant_ethnic_background_asian": { "header": "", @@ -1486,11 +1478,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 2, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 2 }] }, "lead_tenant_ethnic_background_black": { "header": "", @@ -1514,11 +1502,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 3, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 3 }] }, "lead_tenant_ethnic_background_mixed": { "header": "", @@ -1545,11 +1529,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 1, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 1 }] }, "lead_tenant_ethnic_background_white": { "header": "", @@ -1576,11 +1556,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 0, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 0 }] }, "lead_tenant_nationality": { "header": "", @@ -1647,11 +1623,7 @@ } } }, - "depends_on": [ - { - "declaration": 1 - } - ] + "depends_on": [{ "declaration": 1 }] }, "lead_tenant_working_situation": { "header": "", @@ -1699,13 +1671,10 @@ } } }, - "depends_on": [ - { - "declaration": 1 - } - ] + "depends_on": [{ "declaration": 1 }] }, "lead_tenant_under_retirement_value_check": { + "depends_on": [{ "person_1_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -1744,11 +1713,14 @@ "1": { "value": "No" } - } + } } - },"depends_on": [{"declaration": 1, "person_1_retired_under_soft_min_age?": true}] + } }, "lead_tenant_over_retirement_value_check": { + "depends_on": [ + { "person_1_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -1789,7 +1761,7 @@ } } } - },"depends_on": [{"declaration": 1, "person_1_not_retired_over_soft_max_age?": true}] + } }, "person_2_known": { "header": "You’ve given us the details for 1 person in the household", @@ -1831,9 +1803,6 @@ }, { "hhmemb": 8 - }, - { - "declaration": 1 } ] }, @@ -1868,7 +1837,7 @@ }, "depends_on": [ { - "details_known_2": 0, "declaration": 1 + "details_known_2": 0 } ] }, @@ -1898,9 +1867,6 @@ }, { "age2_known": 1 - }, - { - "declaration": 1 } ] } @@ -1924,15 +1890,12 @@ "depends_on": [ { "details_known_2": 0 - }, - { - "declaration": 1 } ] }, "no_females_pregnant_household_person_2_age_value_check": { "depends_on": [ - { "no_females_in_a_pregnant_household?": true, "age2_known": 0, "declaration": 1 } + { "no_females_in_a_pregnant_household?": true, "age2_known": 0 } ], "title_text": { "translation": "soft_validations.pregnancy.title", @@ -1967,10 +1930,7 @@ "1": { "value": "No" } - }, "depends_on": [ - { - "declaration": 1 - }] + } } } }, @@ -2014,10 +1974,7 @@ "1": { "value": "No" } - }, "depends_on": [ - { - "declaration": 1 - }] + } } } }, @@ -2051,7 +2008,7 @@ }, "depends_on": [ { - "details_known_2": 0, "declaration": 1 + "details_known_2": 0 } ] }, @@ -2059,7 +2016,7 @@ "depends_on": [ { "no_females_in_a_pregnant_household?": true, - "details_known_2": 0, "declaration": 1 + "details_known_2": 0 } ], "title_text": { @@ -2095,10 +2052,7 @@ "1": { "value": "No" } - }, "depends_on": [ - { - "declaration": 1 - }] + } } } }, @@ -2106,7 +2060,7 @@ "depends_on": [ { "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_2": 0, "declaration": 1 + "details_known_2": 0 } ], "title_text": { @@ -2142,10 +2096,7 @@ "1": { "value": "No" } - }, "depends_on": [ - { - "declaration": 1 - }] + } } } }, @@ -2207,8 +2158,7 @@ "details_known_2": 0, "age2": { "operator": ">", - "operand": 15, - "declaration": 1 + "operand": 15 } }, { @@ -2218,7 +2168,7 @@ ] }, "person_2_under_retirement_value_check": { - "depends_on": [{ "person_2_retired_under_soft_min_age?": true, "declaration": 1 }], + "depends_on": [{ "person_2_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -2257,16 +2207,13 @@ "1": { "value": "No" } - }, "depends_on": [ - { - "declaration": 1 - }] + } } } }, "person_2_over_retirement_value_check": { "depends_on": [ - { "person_2_not_retired_over_soft_max_age?": true, "declaration": 1 } + { "person_2_not_retired_over_soft_max_age?": true } ], "title_text": { "translation": "soft_validations.retirement.max.title", @@ -2306,10 +2253,7 @@ "1": { "value": "No" } - }, "depends_on": [ - { - "declaration": 1 - }] + } } } }, @@ -2350,11 +2294,7 @@ }, { "hhmemb": 8 - }, - { - "declaration": 8 - }, - {"declaration": 1} + } ] }, "person_3_relationship_to_lead": { @@ -2388,9 +2328,8 @@ }, "depends_on": [ { - "details_known_3": 0, "declaration": 1 - }, - {"declaration": 1} + "details_known_3": 0 + } ] }, "person_3_age": { @@ -2419,9 +2358,6 @@ }, { "age3_known": 1 - }, - { - "declaration": 1 } ] } @@ -2444,14 +2380,13 @@ }, "depends_on": [ { - "details_known_3": 0, "declaration": 1 - }, - {"declaration": 1} + "details_known_3": 0 + } ] }, "no_females_pregnant_household_person_3_age_value_check": { "depends_on": [ - { "no_females_in_a_pregnant_household?": true, "age3_known": 0, "declaration": 1 } + { "no_females_in_a_pregnant_household?": true, "age3_known": 0 } ], "title_text": { "translation": "soft_validations.pregnancy.title", @@ -2486,14 +2421,17 @@ "1": { "value": "No" } - }, "depends_on": [ - { - "declaration": 1 - }] + } } } }, "females_in_soft_age_range_in_pregnant_household_person_3_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age3_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2529,8 +2467,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age3_known": 0}] + } }, "person_3_gender_identity": { "header": "", @@ -2563,11 +2500,16 @@ "depends_on": [ { "details_known_3": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_3_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_3": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2603,10 +2545,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_3": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_3_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_3": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2642,8 +2589,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_3": 0}] + } }, "person_3_working_situation": { "header": "", @@ -2709,11 +2655,11 @@ { "details_known_3": 0, "age3": null - }, - {"declaration": 1} + } ] }, "person_3_under_retirement_value_check": { + "depends_on": [{ "person_3_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -2754,9 +2700,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_3_retired_under_soft_min_age?": true}] + } }, "person_3_over_retirement_value_check": { + "depends_on": [ + { "person_3_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -2797,7 +2746,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_3_not_retired_over_soft_max_age?": true}] + } }, "person_4_known": { "header": "You’ve given us the details for 3 people in the household", @@ -2833,8 +2782,7 @@ }, { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_4_relationship_to_lead": { @@ -2869,8 +2817,7 @@ "depends_on": [ { "details_known_4": 0 - }, - {"declaraton": 1} + } ] }, "person_4_age": { @@ -2922,11 +2869,13 @@ "depends_on": [ { "details_known_4": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_4_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age4_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2962,9 +2911,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age4_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_4_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age4_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3000,8 +2955,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age4_known": 0}] + } }, "person_4_gender_identity": { "header": "", @@ -3034,11 +2988,16 @@ "depends_on": [ { "details_known_4": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_4_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_4": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3074,10 +3033,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_4": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_4_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_4": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3113,8 +3077,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_4": 0}] + } }, "person_4_working_situation": { "header": "", @@ -3180,11 +3143,11 @@ { "details_known_4": 0, "age4": null - }, - {"declaration": 1} + } ] }, "person_4_under_retirement_value_check": { + "depends_on": [{ "person_4_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -3225,9 +3188,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_4_retired_under_soft_min_age?": true}] + } }, "person_4_over_retirement_value_check": { + "depends_on": [ + { "person_4_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -3268,7 +3234,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_4_not_retired_over_soft_max_age?": true }] + } }, "person_5_known": { "header": "You’ve given us the details for 4 people in the household", @@ -3301,8 +3267,7 @@ }, { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_5_relationship_to_lead": { @@ -3337,8 +3302,7 @@ "depends_on": [ { "details_known_5": 0 - }, - {"declaration": 1} + } ] }, "person_5_age": { @@ -3390,11 +3354,13 @@ "depends_on": [ { "details_known_5": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_5_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age5_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3430,9 +3396,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age5_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_5_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age5_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3468,8 +3440,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age5_known": 0}] + } }, "person_5_gender_identity": { "header": "", @@ -3502,11 +3473,16 @@ "depends_on": [ { "details_known_5": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_5_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_5": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3542,10 +3518,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_5": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_5_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_5": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3581,8 +3562,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_5": 0}] + } }, "person_5_working_situation": { "header": "", @@ -3648,11 +3628,11 @@ { "details_known_5": 0, "age5": null - }, - {"declaration": 1} + } ] }, "person_5_under_retirement_value_check": { + "depends_on": [{ "person_5_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -3693,9 +3673,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_5_retired_under_soft_min_age?": true}] + } }, "person_5_over_retirement_value_check": { + "depends_on": [ + { "person_5_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -3736,7 +3719,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_5_not_retired_over_soft_max_age?": true }] + } }, "person_6_known": { "header": "You’ve given us the details for 5 people in the household", @@ -3766,8 +3749,7 @@ }, { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_6_relationship_to_lead": { @@ -3802,8 +3784,7 @@ "depends_on": [ { "details_known_6": 0 - }, - {"declaration": 1} + } ] }, "person_6_age": { @@ -3855,11 +3836,13 @@ "depends_on": [ { "details_known_6": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_6_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age6_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3895,9 +3878,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age6_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_6_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age6_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3933,8 +3922,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age6_known": 0}] + } }, "person_6_gender_identity": { "header": "", @@ -3967,11 +3955,16 @@ "depends_on": [ { "details_known_6": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_6_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_6": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4007,10 +4000,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_6": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_6_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_6": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4046,8 +4044,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_6": 0}] + } }, "person_6_working_situation": { "header": "", @@ -4113,11 +4110,11 @@ { "details_known_6": 0, "age6": null - }, - {"declaration": 1} + } ] }, "person_6_under_retirement_value_check": { + "depends_on": [{ "person_6_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -4158,9 +4155,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_6_retired_under_soft_min_age?": true}] + } }, "person_6_over_retirement_value_check": { + "depends_on": [ + { "person_6_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -4201,7 +4201,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_6_not_retired_over_soft_max_age?": true}] + } }, "person_7_known": { "header": "You’ve given us the details for 7 people in the household", @@ -4228,8 +4228,7 @@ }, { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_7_relationship_to_lead": { @@ -4264,8 +4263,7 @@ "depends_on": [ { "details_known_7": 0 - }, - {"declaration": 1} + } ] }, "person_7_age": { @@ -4317,11 +4315,13 @@ "depends_on": [ { "details_known_7": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_7_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age7_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4357,9 +4357,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age7_known": 0 }] + } }, "females_in_soft_age_range_in_pregnant_household_person_7_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age7_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4395,8 +4401,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age7_known": 0}] + } }, "person_7_gender_identity": { "header": "", @@ -4433,6 +4438,12 @@ ] }, "no_females_pregnant_household_person_7_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_7": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4468,10 +4479,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_7": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_7_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_7": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4507,8 +4523,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_7": 0}] + } }, "person_7_working_situation": { "header": "", @@ -4574,11 +4589,11 @@ { "details_known_7": 0, "age7": null - }, - {"declaration": 1} + } ] }, "person_7_under_retirement_value_check": { + "depends_on": [{ "person_7_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -4619,9 +4634,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_7_retired_under_soft_min_age?": true}] + } }, "person_7_over_retirement_value_check": { + "depends_on": [ + { "person_7_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -4662,7 +4680,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_7_not_retired_over_soft_max_age?": true}] + } }, "person_8_known": { "header": "You’ve given us the details for 7 people in the household", @@ -4686,8 +4704,7 @@ "depends_on": [ { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_8_relationship_to_lead": { @@ -4722,8 +4739,7 @@ "depends_on": [ { "details_known_8": 0 - }, - {"declaration": 1} + } ] }, "person_8_age": { @@ -4775,11 +4791,13 @@ "depends_on": [ { "details_known_8": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_8_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age8_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4815,9 +4833,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age8_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_8_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age8_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4853,8 +4877,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age8_known": 0}] + } }, "person_8_gender_identity": { "header": "", @@ -4887,11 +4910,16 @@ "depends_on": [ { "details_known_8": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_8_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_8": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4927,10 +4955,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_8": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_8_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_8": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4966,8 +4999,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_8": 0}] + } }, "person_8_working_situation": { "header": "", @@ -5033,11 +5065,11 @@ { "details_known_8": 0, "age8": null - }, - {"declaration": 1} + } ] }, "person_8_under_retirement_value_check": { + "depends_on": [{ "person_8_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -5078,9 +5110,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_8_retired_under_soft_min_age?": true}] + } }, "person_8_over_retirement_value_check": { + "depends_on": [ + { "person_8_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -5123,7 +5158,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_8_not_retired_over_soft_max_age?": true}] + } }, "household_needs": { "label": "Household needs", diff --git a/config/forms/2022_2023.json b/config/forms/2022_2023.json index 6c85d9ecb..db26c7d0f 100644 --- a/config/forms/2022_2023.json +++ b/config/forms/2022_2023.json @@ -1113,9 +1113,11 @@ "step": 1, "width": 2 } - } + }, + "depends_on": [{ "declaration": 1 }] }, "no_females_pregnant_household_lead_hhmemb_value_check": { + "depends_on": [{ "no_females_in_a_pregnant_household?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1151,9 +1153,10 @@ } } } - },"depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true }] + } }, "females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check": { + "depends_on": [{ "female_in_pregnant_household_in_soft_validation_range?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1189,7 +1192,7 @@ } } } - },"depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true}] + } }, "lead_tenant_age": { "header": "", @@ -1219,7 +1222,7 @@ "age1_known": 1 } ] - },"depends_on": [{"declaration": 1}] + } }, "age1": { "header": "Age", @@ -1236,7 +1239,8 @@ "value": "Not known" } } - } + }, + "depends_on": [{ "declaration": 1 }] }, "no_females_pregnant_household_lead_age_value_check": { "depends_on": [{ "no_females_in_a_pregnant_household?": true }], @@ -1278,6 +1282,7 @@ } }, "females_in_soft_age_range_in_pregnant_household_lead_age_value_check": { + "depends_on": [{ "female_in_pregnant_household_in_soft_validation_range?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1313,7 +1318,7 @@ } } } - },"depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true}] + } }, "lead_tenant_gender_identity": { "header": "", @@ -1342,9 +1347,11 @@ } } } - },"depends_on": [{"declaration": 1}] + }, + "depends_on": [{ "declaration": 1 }] }, "no_females_pregnant_household_lead_value_check": { + "depends_on": [{ "no_females_in_a_pregnant_household?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1380,9 +1387,10 @@ } } } - },"depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true}] + } }, "females_in_soft_age_range_in_pregnant_household_lead_value_check": { + "depends_on": [{ "female_in_pregnant_household_in_soft_validation_range?": true }], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1418,7 +1426,7 @@ } } } - },"depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true}] + } }, "lead_tenant_ethnic_group": { "header": "", @@ -1453,7 +1461,8 @@ } } } - },"depends_on": [{"declaration": 1}] + }, + "depends_on": [{ "declaration": 1 }] }, "lead_tenant_ethnic_background_arab": { "header": "", @@ -1474,11 +1483,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 4, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 4 }] }, "lead_tenant_ethnic_background_asian": { "header": "", @@ -1508,11 +1513,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 2, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 2 }] }, "lead_tenant_ethnic_background_black": { "header": "", @@ -1536,11 +1537,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 3, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 3 }] }, "lead_tenant_ethnic_background_mixed": { "header": "", @@ -1567,11 +1564,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 1, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 1 }] }, "lead_tenant_ethnic_background_white": { "header": "", @@ -1598,11 +1591,7 @@ } } }, - "depends_on": [ - { - "ethnic_group": 0, "declaration": 1 - } - ] + "depends_on": [{ "ethnic_group": 0 }] }, "lead_tenant_nationality": { "header": "", @@ -1632,7 +1621,8 @@ } } } - },"depends_on": [{"declaration": 1}] + }, + "depends_on": [{ "declaration": 1 }] }, "lead_tenant_working_situation": { "header": "", @@ -1679,9 +1669,11 @@ } } } - },"depends_on": [{"declaration": 1}] + }, + "depends_on": [{ "declaration": 1 }] }, "lead_tenant_under_retirement_value_check": { + "depends_on": [{ "person_1_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -1722,9 +1714,10 @@ } } } - },"depends_on": [{"declaration": 1, "person_1_retired_under_soft_min_age?": true}] + } }, "lead_tenant_over_retirement_value_check": { + "depends_on": [{ "person_1_not_retired_over_soft_max_age?": true }], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -1765,7 +1758,7 @@ } } } - },"depends_on": [{"declaration": 1, "person_1_not_retired_over_soft_max_age?": true}] + } }, "person_2_known": { "header": "You’ve given us the details for 1 person in the household", @@ -1807,9 +1800,6 @@ }, { "hhmemb": 8 - }, - { - "declaration": 1 } ] }, @@ -1845,9 +1835,6 @@ "depends_on": [ { "details_known_2": 0 - }, - { - "declaration": 1 } ] }, @@ -1877,9 +1864,6 @@ }, { "age2_known": 1 - }, - { - "declaration": 1 } ] } @@ -1903,13 +1887,13 @@ "depends_on": [ { "details_known_2": 0 - }, - { - "declaration": 1 } ] }, "no_females_pregnant_household_person_2_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age2_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1945,9 +1929,15 @@ } } } - },"depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age2_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_2_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age2_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -1983,8 +1973,7 @@ } } } - },"depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age2_known": 0}] + } }, "person_2_gender_identity": { "header": "", @@ -2016,11 +2005,17 @@ }, "depends_on": [ { - "details_known_2": 0, "declaration": 1 + "details_known_2": 0 } ] }, "no_females_pregnant_household_person_2_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_2": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2056,10 +2051,15 @@ } } } - },"depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_2": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_2_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_2": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2095,8 +2095,7 @@ } } } - },"depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_2": 0}] + } }, "person_2_working_situation": { "header": "", @@ -2166,6 +2165,7 @@ ] }, "person_2_under_retirement_value_check": { + "depends_on": [{ "person_2_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -2206,9 +2206,12 @@ } } } - },"depends_on": [{"declaration": 1, "person_2_retired_under_soft_min_age?": true}] + } }, "person_2_over_retirement_value_check": { + "depends_on": [ + { "person_2_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -2249,7 +2252,7 @@ } } } - },"depends_on": [{"declaration": 1, "person_2_not_retired_over_soft_max_age?": true}] + } }, "person_3_known": { "header": "You’ve given us the details for 2 people in the household", @@ -2288,9 +2291,6 @@ }, { "hhmemb": 8 - }, - { - "declaration": 1 } ] }, @@ -2325,7 +2325,7 @@ }, "depends_on": [ { - "details_known_3": 0, "declaration": 1 + "details_known_3": 0 } ] }, @@ -2377,11 +2377,14 @@ }, "depends_on": [ { - "details_known_3": 0, "declaration": 1 + "details_known_3": 0 } ] }, "no_females_pregnant_household_person_3_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age3_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2417,9 +2420,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age3_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_3_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age3_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2455,8 +2464,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age3_known": 0}] + } }, "person_3_gender_identity": { "header": "", @@ -2488,11 +2496,17 @@ }, "depends_on": [ { - "details_known_3": 0, "declaration": 1 + "details_known_3": 0 } ] }, "no_females_pregnant_household_person_3_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_3": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2528,10 +2542,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_3": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_3_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_3": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2567,8 +2586,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_3": 0}] + } }, "person_3_working_situation": { "header": "", @@ -2634,11 +2652,11 @@ { "details_known_3": 0, "age3": null - }, - {"declaration": 1} + } ] }, "person_3_under_retirement_value_check": { + "depends_on": [{ "person_3_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -2679,9 +2697,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_3_retired_under_soft_min_age?": true}] + } }, "person_3_over_retirement_value_check": { + "depends_on": [ + { "person_3_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -2722,7 +2743,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_3_not_retired_over_soft_max_age?": true}] + } }, "person_4_known": { "header": "You’ve given us the details for 3 people in the household", @@ -2758,9 +2779,6 @@ }, { "hhmemb": 8 - }, - { - "declaration": 1 } ] }, @@ -2796,8 +2814,7 @@ "depends_on": [ { "details_known_4": 0 - }, - {"declaration": 1} + } ] }, "person_4_age": { @@ -2849,11 +2866,13 @@ "depends_on": [ { "details_known_4": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_4_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age4_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2889,9 +2908,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age4_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_4_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age4_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -2927,8 +2952,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age4_known": 0}] + } }, "person_4_gender_identity": { "header": "", @@ -2961,11 +2985,16 @@ "depends_on": [ { "details_known_4": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_4_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_4": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3001,10 +3030,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_4": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_4_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_4": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3040,8 +3074,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_4": 0}] + } }, "person_4_working_situation": { "header": "", @@ -3107,11 +3140,11 @@ { "details_known_4": 0, "age4": null - }, - {"declaration": 1} + } ] }, "person_4_under_retirement_value_check": { + "depends_on": [{ "person_4_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -3152,9 +3185,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_4_retired_under_soft_min_age?": true }] + } }, "person_4_over_retirement_value_check": { + "depends_on": [ + { "person_4_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -3195,7 +3231,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_4_not_retired_over_soft_max_age?": true}] + } }, "person_5_known": { "header": "You’ve given us the details for 4 people in the household", @@ -3228,8 +3264,7 @@ }, { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_5_relationship_to_lead": { @@ -3264,8 +3299,7 @@ "depends_on": [ { "details_known_5": 0 - }, - {"declaration": 1} + } ] }, "person_5_age": { @@ -3317,11 +3351,13 @@ "depends_on": [ { "details_known_5": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_5_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age5_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3357,9 +3393,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age5_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_5_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age5_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3395,8 +3437,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age5_known": 0}] + } }, "person_5_gender_identity": { "header": "", @@ -3429,11 +3470,16 @@ "depends_on": [ { "details_known_5": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_5_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_5": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3469,10 +3515,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_5": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_5_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_5": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3508,8 +3559,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_5": 0}] + } }, "person_5_working_situation": { "header": "", @@ -3575,11 +3625,11 @@ { "details_known_5": 0, "age5": null - }, - {"declaration": 1} + } ] }, "person_5_under_retirement_value_check": { + "depends_on": [{ "person_5_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -3620,9 +3670,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_5_retired_under_soft_min_age?": true}] + } }, "person_5_over_retirement_value_check": { + "depends_on": [ + { "person_5_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -3663,7 +3716,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_5_not_retired_over_soft_max_age?": true}] + } }, "person_6_known": { "header": "You’ve given us the details for 5 people in the household", @@ -3693,8 +3746,7 @@ }, { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_6_relationship_to_lead": { @@ -3729,8 +3781,7 @@ "depends_on": [ { "details_known_6": 0 - }, - {"declaration": 1} + } ] }, "person_6_age": { @@ -3782,11 +3833,13 @@ "depends_on": [ { "details_known_6": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_6_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age6_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3822,9 +3875,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age6_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_6_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age6_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3860,8 +3919,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age6_known": 0}] + } }, "person_6_gender_identity": { "header": "", @@ -3894,11 +3952,16 @@ "depends_on": [ { "details_known_6": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_6_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_6": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3934,10 +3997,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_6": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_6_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_6": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -3973,8 +4041,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_6": 0}] + } }, "person_6_working_situation": { "header": "", @@ -4040,11 +4107,11 @@ { "details_known_6": 0, "age6": null - }, - {"declaration": 1} + } ] }, "person_6_under_retirement_value_check": { + "depends_on": [{ "person_6_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -4085,9 +4152,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_6_retired_under_soft_min_age?": true}] + } }, "person_6_over_retirement_value_check": { + "depends_on": [ + { "person_6_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -4128,7 +4198,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_6_not_retired_over_soft_max_age?": true}] + } }, "person_7_known": { "header": "You’ve given us the details for 7 people in the household", @@ -4155,8 +4225,7 @@ }, { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_7_relationship_to_lead": { @@ -4191,8 +4260,7 @@ "depends_on": [ { "details_known_7": 0 - }, - {"declaration": 1} + } ] }, "person_7_age": { @@ -4244,11 +4312,13 @@ "depends_on": [ { "details_known_7": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_7_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age7_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4284,9 +4354,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age7_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_7_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age7_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4322,8 +4398,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age7_known": 0}] + } }, "person_7_gender_identity": { "header": "", @@ -4356,11 +4431,16 @@ "depends_on": [ { "details_known_7": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_7_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_7": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4396,10 +4476,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_7": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_7_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_7": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4435,8 +4520,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_7": 0}] + } }, "person_7_working_situation": { "header": "", @@ -4502,11 +4586,11 @@ { "details_known_7": 0, "age7": null - }, - {"declaration": 1} + } ] }, "person_7_under_retirement_value_check": { + "depends_on": [{ "person_7_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -4547,9 +4631,12 @@ } } } - }, "depends_on": [{"declaration": 1, "person_7_retired_under_soft_min_age?": true}] + } }, "person_7_over_retirement_value_check": { + "depends_on": [ + { "person_7_not_retired_over_soft_max_age?": true } + ], "title_text": { "translation": "soft_validations.retirement.max.title", "arguments": [ @@ -4590,7 +4677,7 @@ } } } - }, "depends_on": [{"declaration": 1, "person_7_not_retired_over_soft_max_age?": true}] + } }, "person_8_known": { "header": "You’ve given us the details for 7 people in the household", @@ -4614,8 +4701,7 @@ "depends_on": [ { "hhmemb": 8 - }, - {"declaration": 1} + } ] }, "person_8_relationship_to_lead": { @@ -4650,8 +4736,7 @@ "depends_on": [ { "details_known_8": 0 - }, - {"declaration": 1} + } ] }, "person_8_age": { @@ -4703,11 +4788,13 @@ "depends_on": [ { "details_known_8": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_8_age_value_check": { + "depends_on": [ + { "no_females_in_a_pregnant_household?": true, "age8_known": 0 } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4743,9 +4830,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, "age8_known": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_8_age_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "age8_known": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4781,8 +4874,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "age8_known": 0}] + } }, "person_8_gender_identity": { "header": "", @@ -4815,11 +4907,16 @@ "depends_on": [ { "details_known_8": 0 - }, - {"declaration": 1} + } ] }, "no_females_pregnant_household_person_8_value_check": { + "depends_on": [ + { + "no_females_in_a_pregnant_household?": true, + "details_known_8": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4855,10 +4952,15 @@ } } } - }, "depends_on": [{"declaration": 1, "no_females_in_a_pregnant_household?": true, - "details_known_8": 0}] + } }, "females_in_soft_age_range_in_pregnant_household_person_8_value_check": { + "depends_on": [ + { + "female_in_pregnant_household_in_soft_validation_range?": true, + "details_known_8": 0 + } + ], "title_text": { "translation": "soft_validations.pregnancy.title", "arguments": [ @@ -4894,8 +4996,7 @@ } } } - }, "depends_on": [{"declaration": 1, "female_in_pregnant_household_in_soft_validation_range?": true, - "details_known_8": 0}] + } }, "person_8_working_situation": { "header": "", @@ -4961,12 +5062,11 @@ { "details_known_8": 0, "age8": null - }, - {"declaration": 1} + } ] }, "person_8_under_retirement_value_check": { - "depends_on": [{ "person_8_retired_under_soft_min_age?": true, "declaration": 1 }], + "depends_on": [{ "person_8_retired_under_soft_min_age?": true }], "title_text": { "translation": "soft_validations.retirement.min.title", "arguments": [ @@ -5011,7 +5111,7 @@ }, "person_8_over_retirement_value_check": { "depends_on": [ - { "person_8_not_retired_over_soft_max_age?": true, "declaration": 1 } + { "person_8_not_retired_over_soft_max_age?": true } ], "title_text": { "translation": "soft_validations.retirement.max.title", @@ -5056,7 +5156,6 @@ } } } - }, "household_needs": { "label": "Household needs",