Skip to content

Commit

Permalink
Render subforms correctly to avoid repeating pages and sections
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 committed Jul 28, 2023
1 parent 823734e commit 179cab0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@
"behaviours": [
{
"intent": "*",
"hide": {
"hide": {
"hideWhenExpression": "labOrderToggle == '488b58ff-64f5-4f8a-8979-fa79940b1594'"
}
}
Expand Down
18 changes: 1 addition & 17 deletions distro/configuration/ampathforms/covid_case_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@
"published": true,
"retired": false,
"pages": [
{
"label": "COVID Assessment",
"sections": [],
"isSubform": "true",
"subform": {
"name": "COVID Assessment Form",
"package": "covid",
"behaviours": [
{
"intent": "*",
"subform_intent": "COVID_LAB_ASSESSMENT_EMBED",
"readonly": "false"
}
]
}
},
{
"label": "COVID Outcome",
"sections": [],
Expand All @@ -37,7 +21,7 @@
}
},
{
"label": "",
"label": "Notes",
"sections": [
{
"label": "",
Expand Down
5 changes: 0 additions & 5 deletions distro/configuration/ampathforms/covid_outcome_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"intent": "*",
"subform_intent": "COVID_LAB_ASSESSMENT_EMBED",
"readonly": "true"
},
{
"intent": "COVID_OUTCOME_EMBED",
"subform_intent": "COVID_LAB_ASSESSMENT_EMBED",
"isHidden": "true"
}
]
}
Expand Down

0 comments on commit 179cab0

Please sign in to comment.