From ac88f4e4a09991e02902c4526793ef491419a874 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Tue, 9 Aug 2022 10:05:58 +0100 Subject: [PATCH] Add outstanding amount conditionally and update check-answers --- config/forms/2022_2023.json | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/config/forms/2022_2023.json b/config/forms/2022_2023.json index d7c903b25..4a43f6a26 100644 --- a/config/forms/2022_2023.json +++ b/config/forms/2022_2023.json @@ -7819,17 +7819,15 @@ } ] }, - "outstanding_amount_known": { + "outstanding_amount": { "header": "", "description": "", "questions": { "tshortfall_known": { - "check_answer_label": "", - "header": "", - "hint_text": "", - "hidden_in_check_answers": true, + "check_answer_label": "Do you know the outstanding amount?", + "header": "Can you estimate the outstanding amount?", + "hint_text": "You only need to give an approximate figure.", "type": "radio", - "derived": true, "answer_options": { "0": { "value": "Yes" @@ -7837,19 +7835,14 @@ "1": { "value": "No" } + }, + "conditional_for": { + "tshortfall": [0] } - } - }, - "depends_on": [false] - }, - "outstanding_amount": { - "header": "", - "description": "", - "questions": { + }, "tshortfall": { "check_answer_label": "Estimated outstanding amount", - "header": "What do you expect the outstanding amount to be?", - "hint_text": "Give an estimated amount if you don’t know the exact figure.", + "header": "Estimated outstanding amount", "type": "numeric", "min": 0, "step": 0.01,