Browse Source

Cldc 1235 conditional shortfall (#824)

* Add outstanding amount conditionally and update check-answers

* Duplicate changes on 2021_2022.json

* Fix mis-commit
pull/825/head
natdeanlewissoftwire 2 years ago committed by GitHub
parent
commit
1b6e6938ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      config/forms/2021_2022.json
  2. 23
      config/forms/2022_2023.json

23
config/forms/2021_2022.json

@ -7887,17 +7887,15 @@
} }
] ]
}, },
"outstanding_amount_known": { "outstanding_amount": {
"header": "", "header": "",
"description": "", "description": "",
"questions": { "questions": {
"tshortfall_known": { "tshortfall_known": {
"check_answer_label": "", "check_answer_label": "Do you know the outstanding amount?",
"header": "", "header": "Can you estimate the outstanding amount?",
"hint_text": "", "hint_text": "You only need to give an approximate figure.",
"hidden_in_check_answers": true,
"type": "radio", "type": "radio",
"derived": true,
"answer_options": { "answer_options": {
"0": { "0": {
"value": "Yes" "value": "Yes"
@ -7905,19 +7903,14 @@
"1": { "1": {
"value": "No" "value": "No"
} }
}
}
}, },
"depends_on": [false] "conditional_for": {
"tshortfall": [0]
}
}, },
"outstanding_amount": {
"header": "",
"description": "",
"questions": {
"tshortfall": { "tshortfall": {
"check_answer_label": "Estimated outstanding amount", "check_answer_label": "Estimated outstanding amount",
"header": "What do you expect the outstanding amount to be?", "header": "Estimated outstanding amount",
"hint_text": "Give an estimated amount if you don’t know the exact figure.",
"type": "numeric", "type": "numeric",
"min": 0, "min": 0,
"step": 0.01, "step": 0.01,

23
config/forms/2022_2023.json

@ -7819,17 +7819,15 @@
} }
] ]
}, },
"outstanding_amount_known": { "outstanding_amount": {
"header": "", "header": "",
"description": "", "description": "",
"questions": { "questions": {
"tshortfall_known": { "tshortfall_known": {
"check_answer_label": "", "check_answer_label": "Do you know the outstanding amount?",
"header": "", "header": "Can you estimate the outstanding amount?",
"hint_text": "", "hint_text": "You only need to give an approximate figure.",
"hidden_in_check_answers": true,
"type": "radio", "type": "radio",
"derived": true,
"answer_options": { "answer_options": {
"0": { "0": {
"value": "Yes" "value": "Yes"
@ -7837,19 +7835,14 @@
"1": { "1": {
"value": "No" "value": "No"
} }
}
}
}, },
"depends_on": [false] "conditional_for": {
"tshortfall": [0]
}
}, },
"outstanding_amount": {
"header": "",
"description": "",
"questions": {
"tshortfall": { "tshortfall": {
"check_answer_label": "Estimated outstanding amount", "check_answer_label": "Estimated outstanding amount",
"header": "What do you expect the outstanding amount to be?", "header": "Estimated outstanding amount",
"hint_text": "Give an estimated amount if you don’t know the exact figure.",
"type": "numeric", "type": "numeric",
"min": 0, "min": 0,
"step": 0.01, "step": 0.01,

Loading…
Cancel
Save