Skip to content

Commit

Permalink
OOC-4340 move question before HPT question and fix so question is man…
Browse files Browse the repository at this point in the history
…datory
  • Loading branch information
emilyjevans committed Jun 3, 2024
1 parent fe8367e commit d7488cc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions runner/src/server/forms/ReportAnOutbreak.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,28 @@
"nameHasError": false,
"hint": "Please provide the postcode of the specific setting affected (i.e. not the overarching management company if applicable). If there is no one specific setting affected e.g. Domiciliary or Home Care, then please provide the postcode of the care provider company"
},
{
"name": "S0Q3",
"options": {
"required": true
},
"type": "SelectField",
"title": "Please enter your local HPT here",
"list": "sjgMDe",
"nameHasError": false,
"schema": {},
"values": {
"type": "listRef"
},
"hint": "Please make sure you've selected the correct local health protection team (HPT) to guarantee you receive the appropriate support"
},
{
"name": "cstZQG",
"options": {},
"type": "Para",
"content": "Click on the link to <a target=\"_blank\" id=\"local-health-protection-team\" href=\"https://www.gov.uk/health-protection-team\">Find your local health protection team in England - GOV.UK</a> (www.gov.uk) [Enter the postcode of your care setting]",
"schema": {}
},
{
"name": "S0Q2a",
"type": "RadiosField",
Expand All @@ -54,8 +76,8 @@
"conditionallyRevealedComponents": {
"yes": {
"type": "TextField",
"name": "SOQ2",
"title": "Please enter your CQC Location ID",
"name": "yes",
"title": "Please enter your CQC Location ID (Mandatory)",
"options": {},
"schema": {}
}
Expand All @@ -68,28 +90,6 @@
"type": "Para",
"content": "If you don’t know your CQC Location ID then please visit <a id=\"cqc number\" target=\"_blank\" href=\"https://www.cqc.org.uk/about-us/transparency/using-cqc-data\">Using CQC data - Care Quality Commission</a> and scroll about half way down the page to <b style=\"color:#1d70b8\">CQC care directory - csv</b>. You will find your CQC Location ID in this look up table.\n</br></br>",
"schema": {}
},
{
"name": "S0Q3",
"options": {
"required": true
},
"type": "SelectField",
"title": "Please enter your local HPT here",
"list": "sjgMDe",
"nameHasError": false,
"schema": {},
"values": {
"type": "listRef"
},
"hint": "Please make sure you've selected the correct local health protection team (HPT) to guarantee you receive the appropriate support"
},
{
"name": "cstZQG",
"options": {},
"type": "Para",
"content": "Click on the link to <a target=\"_blank\" id=\"local-health-protection-team\" href=\"https://www.gov.uk/health-protection-team\">Find your local health protection team in England - GOV.UK</a> (www.gov.uk) [Enter the postcode of your care setting]",
"schema": {}
}
],
"next": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class SelectionControlField extends ListFormComponent {
Object.assign(schemaKeys, {
[key]: joi.alternatives().conditional(joi.ref(conditionalName), {
is: key,
then: conditionalSchemaKeys[key].optional(),
then: conditionalSchemaKeys[key].required(),
otherwise: joi.optional(),
//TODO: Checkbox joi validation
}),
Expand Down

0 comments on commit d7488cc

Please sign in to comment.