diff --git a/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json b/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json
index 02bfa13e..ce244b29 100644
--- a/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json
+++ b/forms-flow-ai/epd-forms/bundling/Contaminated Sites Services Application Form.json
@@ -198,35 +198,60 @@
"label": "Previous Reviewer",
"action": "custom",
"showValidations": false,
+ "theme": "primary",
+ "size": "md",
+ "block": false,
+ "leftIcon": "",
+ "rightIcon": "",
+ "shortcut": "",
+ "description": "",
+ "tooltip": "",
+ "customClass": "",
+ "tabindex": "",
+ "disableOnInvalid": false,
+ "hidden": false,
+ "autofocus": false,
+ "disabled": false,
"tableView": false,
+ "modalEdit": false,
"key": "prevReviewer",
- "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer\") && \r\n!roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n!(roles.includes(\"formsflow-reviewer/sdm\") && data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "tags": [],
+ "properties": {},
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": "",
+ "json": ""
+ },
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer\") && \r\n!roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n!(roles.includes(\"formsflow-reviewer/sdm\") && data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\n roles.includes(\"formsflow-reviewer/sdm\") &&\r\n data.bundleStatus === \"cssaCaseworkerAccepted\")\r\n show = true;\r\n else\r\n show = false;\r\n}",
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
"type": "button",
"custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.cssaUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Recheck'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Recheck'\r\n }); \r\n});",
"input": true,
"placeholder": "",
"prefix": "",
- "customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": false,
- "hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
- "modalEdit": false,
"dataGridLabel": true,
"labelPosition": "top",
- "description": "",
"errorLabel": "",
- "tooltip": "",
"hideLabel": false,
- "tabindex": "",
- "disabled": false,
- "autofocus": false,
"dbIndex": false,
"customDefaultValue": "",
"calculateValue": "",
@@ -234,7 +259,6 @@
"widget": {
"type": "input"
},
- "attributes": {},
"validateOn": "change",
"validate": {
"required": false,
@@ -244,32 +268,13 @@
"multiple": false,
"unique": false
},
- "conditional": {
- "show": null,
- "when": null,
- "eq": ""
- },
- "overlay": {
- "style": "",
- "left": "",
- "top": "",
- "width": "",
- "height": ""
- },
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
- "properties": {},
"allowMultipleMasks": false,
"addons": [],
- "size": "md",
- "leftIcon": "",
- "rightIcon": "",
- "block": false,
- "disableOnInvalid": false,
- "theme": "primary",
- "id": "e3wtbqi"
+ "id": "eydc00x"
}
],
"offset": 0,
@@ -285,35 +290,60 @@
"label": "Next Reviewer",
"action": "custom",
"showValidations": false,
+ "theme": "primary",
+ "size": "md",
+ "block": false,
+ "leftIcon": "",
+ "rightIcon": "",
+ "shortcut": "",
+ "description": "",
+ "tooltip": "",
+ "customClass": "",
+ "tabindex": "",
+ "disableOnInvalid": false,
+ "hidden": false,
+ "autofocus": false,
+ "disabled": false,
"tableView": false,
+ "modalEdit": false,
"key": "nextReviewer",
- "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/caseworker\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "tags": [],
+ "properties": {},
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": "",
+ "json": ""
+ },
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/caseworker\")&&\r\ndata.bundleStatus === 'cssaMgrAccepted') {\r\n if(data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")\r\n show = false;\r\n else\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
"type": "button",
"custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\n\r\nconst filteredData = _.pick(data, data.cssaUtilKeys);\r\n\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Accepted'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Accepted'\r\n }); \r\n});",
"input": true,
"placeholder": "",
"prefix": "",
- "customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": false,
- "hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
- "modalEdit": false,
"dataGridLabel": true,
"labelPosition": "top",
- "description": "",
"errorLabel": "",
- "tooltip": "",
"hideLabel": false,
- "tabindex": "",
- "disabled": false,
- "autofocus": false,
"dbIndex": false,
"customDefaultValue": "",
"calculateValue": "",
@@ -321,7 +351,6 @@
"widget": {
"type": "input"
},
- "attributes": {},
"validateOn": "change",
"validate": {
"required": false,
@@ -331,66 +360,72 @@
"multiple": false,
"unique": false
},
- "conditional": {
- "show": null,
- "when": null,
- "eq": ""
- },
- "overlay": {
- "style": "",
- "left": "",
- "top": "",
- "width": "",
- "height": ""
- },
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
- "properties": {},
"allowMultipleMasks": false,
"addons": [],
- "size": "md",
- "leftIcon": "",
- "rightIcon": "",
- "block": false,
- "disableOnInvalid": false,
- "theme": "primary",
- "id": "eapbjag"
+ "id": "ew6jvpd"
},
{
"label": "Approved",
"action": "custom",
"showValidations": false,
+ "theme": "primary",
+ "size": "md",
+ "block": false,
+ "leftIcon": "",
+ "rightIcon": "",
+ "shortcut": "",
+ "description": "",
+ "tooltip": "",
+ "customClass": "",
+ "tabindex": "",
+ "disableOnInvalid": false,
+ "hidden": false,
+ "autofocus": false,
+ "disabled": false,
"tableView": false,
+ "modalEdit": false,
"key": "approved",
- "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "tags": [],
+ "properties": {},
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": "",
+ "json": ""
+ },
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")&&\r\ndata.bundleStatus !== 'cssaMgrAccepted') {\r\n show = true;\r\n}\r\nelse\r\n{\r\n if(data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")\r\n show = true;\r\n else\r\n show = false;\r\n}",
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
"type": "button",
"custom": "\r\nconst submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.cssaUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Approved'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Approved'\r\n }); \r\n});\r\n",
"input": true,
"placeholder": "",
"prefix": "",
- "customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": false,
- "hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
- "modalEdit": false,
"dataGridLabel": true,
"labelPosition": "top",
- "description": "",
"errorLabel": "",
- "tooltip": "",
"hideLabel": false,
- "tabindex": "",
- "disabled": false,
- "autofocus": false,
"dbIndex": false,
"customDefaultValue": "",
"calculateValue": "",
@@ -398,7 +433,6 @@
"widget": {
"type": "input"
},
- "attributes": {},
"validateOn": "change",
"validate": {
"required": false,
@@ -408,32 +442,13 @@
"multiple": false,
"unique": false
},
- "conditional": {
- "show": null,
- "when": null,
- "eq": ""
- },
- "overlay": {
- "style": "",
- "left": "",
- "top": "",
- "width": "",
- "height": ""
- },
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
- "properties": {},
"allowMultipleMasks": false,
"addons": [],
- "size": "md",
- "leftIcon": "",
- "rightIcon": "",
- "block": false,
- "disableOnInvalid": false,
- "theme": "primary",
- "id": "e2wq7ji"
+ "id": "ejizu0n"
}
],
"width": 3,
@@ -740,7 +755,7 @@
"key": "cssaBundleActions",
"tags": [],
"properties": {},
- "customConditional": "\r\nconst UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") ||\r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\")|| \r\nroles.includes(\"formsflow-reviewer/caseworker\")|| \r\nroles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.riskclassification === \"exempt\"){\r\n show = true;\r\n } else {\r\n show = false;\r\n }\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") ||\r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\")|| \r\nroles.includes(\"formsflow-reviewer/caseworker\")|| \r\nroles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.riskclassification === \"exempt\"){\r\n show = true;\r\n } else {\r\n show = false;\r\n }\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
"conditional": {
"json": "",
"show": null,
@@ -844,7 +859,7 @@
"block": false,
"disableOnInvalid": false,
"theme": "primary",
- "id": "e7uk4dk"
+ "id": "ecp4rx8"
}
],
"width": 3,
@@ -860,36 +875,61 @@
"label": "Next Reviewer",
"action": "custom",
"showValidations": false,
+ "theme": "primary",
+ "size": "md",
+ "block": false,
+ "leftIcon": "",
+ "rightIcon": "",
+ "shortcut": "",
+ "description": "",
+ "tooltip": "",
+ "customClass": "",
+ "tabindex": "",
+ "disableOnInvalid": false,
+ "hidden": false,
+ "autofocus": false,
+ "disabled": false,
"tableView": false,
+ "modalEdit": false,
"key": "sendBundleToNextReviewer",
- "customConditional": "\r\nconst UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\n\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") || \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") || \r\nroles.includes(\"formsflow-reviewer/caseworker\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "tags": [],
+ "properties": {},
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": "",
+ "json": ""
+ },
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\nif(roles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\") || \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") || \r\nroles.includes(\"formsflow-reviewer/caseworker\")) \r\n{\r\n if(data.bundleStatus === 'cssaCaseworkerAccepted' ||\r\n (data.bundleStatus === 'cssaMgrAccepted' && \r\n data.typeOfReview === 'applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc'))\r\n show = false;\r\n else\r\n show = true;\r\n}\r\nelse\r\n{\r\n if(data.bundleStatus === 'cssaMgrAccepted')\r\n show = true;\r\n else\r\n show = false;\r\n}",
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
"type": "button",
"custom": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\nif(roles.includes(\"formsflow-reviewer/cssa-manager\") && \r\n(data.selectCssaSdm===''||data.selectCssaSdm===undefined|| \r\n(data.typeOfReview==='directToMinistryApplication'&&data.selectCssaCaseworker===undefined|| data.selectCssaCaseworker==='')))\r\n{\r\n alert('Please assign reviewers to continue!');\r\n \r\n}\r\nelse\r\n{\r\n form.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType:'Accepted'\r\n });\r\n}",
"input": true,
"keyModified": true,
"placeholder": "",
"prefix": "",
- "customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": false,
- "hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
- "modalEdit": false,
"dataGridLabel": true,
"labelPosition": "top",
- "description": "",
"errorLabel": "",
- "tooltip": "",
"hideLabel": false,
- "tabindex": "",
- "disabled": false,
- "autofocus": false,
"dbIndex": false,
"customDefaultValue": "",
"calculateValue": "",
@@ -897,7 +937,6 @@
"widget": {
"type": "input"
},
- "attributes": {},
"validateOn": "change",
"validate": {
"required": false,
@@ -907,66 +946,72 @@
"multiple": false,
"unique": false
},
- "conditional": {
- "show": null,
- "when": null,
- "eq": ""
- },
- "overlay": {
- "style": "",
- "left": "",
- "top": "",
- "width": "",
- "height": ""
- },
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
- "properties": {},
"allowMultipleMasks": false,
"addons": [],
- "size": "md",
- "leftIcon": "",
- "rightIcon": "",
- "block": false,
- "disableOnInvalid": false,
- "theme": "primary",
- "id": "e817byi"
+ "id": "ebxefsa"
},
{
"label": "Approved",
"action": "custom",
"showValidations": false,
+ "theme": "primary",
+ "size": "md",
+ "block": false,
+ "leftIcon": "",
+ "rightIcon": "",
+ "shortcut": "",
+ "description": "",
+ "tooltip": "",
+ "customClass": "",
+ "tabindex": "",
+ "disableOnInvalid": false,
+ "hidden": false,
+ "autofocus": false,
+ "disabled": false,
"tableView": false,
+ "modalEdit": false,
"key": "approveBundle",
- "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\n\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "tags": [],
+ "properties": {},
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": "",
+ "json": ""
+ },
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif((roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'cssaCaseworkerAccepted') ||\r\n(roles.includes(\"formsflow-reviewer/sdm\") &&\r\ndata.bundleStatus === 'cssaMgrAccepted' &&\r\ndata.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
"type": "button",
"custom": "\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Approved'\r\n})",
"input": true,
"placeholder": "",
"prefix": "",
- "customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": false,
- "hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
- "modalEdit": false,
"dataGridLabel": true,
"labelPosition": "top",
- "description": "",
"errorLabel": "",
- "tooltip": "",
"hideLabel": false,
- "tabindex": "",
- "disabled": false,
- "autofocus": false,
"dbIndex": false,
"customDefaultValue": "",
"calculateValue": "",
@@ -974,7 +1019,6 @@
"widget": {
"type": "input"
},
- "attributes": {},
"validateOn": "change",
"validate": {
"required": false,
@@ -984,32 +1028,13 @@
"multiple": false,
"unique": false
},
- "conditional": {
- "show": null,
- "when": null,
- "eq": ""
- },
- "overlay": {
- "style": "",
- "left": "",
- "top": "",
- "width": "",
- "height": ""
- },
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
- "properties": {},
"allowMultipleMasks": false,
"addons": [],
- "size": "md",
- "leftIcon": "",
- "rightIcon": "",
- "block": false,
- "disableOnInvalid": false,
- "theme": "primary",
- "id": "et1slbj"
+ "id": "ek1owd"
}
],
"width": 3,
@@ -1096,7 +1121,7 @@
"rightIcon": "",
"block": false,
"disableOnInvalid": false,
- "id": "ej0ldaa"
+ "id": "edgjnco"
}
],
"size": "md",
@@ -1183,7 +1208,7 @@
"rightIcon": "",
"block": false,
"disableOnInvalid": false,
- "id": "eskq5iu"
+ "id": "e4xxzl"
}
],
"size": "md",
@@ -1258,7 +1283,7 @@
"tree": false,
"lazyLoad": false,
"autoAdjust": false,
- "id": "e086zvi"
+ "id": "emcpleb"
}
],
"keyModified": true,
@@ -1300,7 +1325,7 @@
"addons": [],
"tree": false,
"lazyLoad": false,
- "id": "ei2zeac"
+ "id": "ezc31jf"
},
{
"title": "Assign Reviewers",
@@ -3834,7 +3859,7 @@
"addons": [],
"inputType": "email",
"inputMask": "",
- "id": "eu56lhs",
+ "id": "es6oy",
"defaultValue": ""
},
{
@@ -7216,7 +7241,7 @@
"addons": [],
"inputType": "email",
"inputMask": "",
- "id": "et0ecz",
+ "id": "enb3fl",
"defaultValue": ""
}
],
@@ -7325,7 +7350,7 @@
"addons": [],
"tree": false,
"lazyLoad": false,
- "id": "ehmz9lv0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+ "id": "ehmz9lv00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
],
"placeholder": "",
@@ -8968,7 +8993,7 @@
}
],
"collapsible": false,
- "id": "ewhx8sm000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "ewhx8sm0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -18136,7 +18161,7 @@
},
"inputMask": "999-999-999",
"tableView": true,
- "id": "elva88000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "elva880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -18216,7 +18241,7 @@
"tableView": true,
"autoExpand": true,
"inputFormat": "plain",
- "id": "ey48nu000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "ey48nu0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -18591,7 +18616,7 @@
"input": true,
"label": "PIN",
"tableView": true,
- "id": "eyxe45n000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "eyxe45n0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -18684,7 +18709,7 @@
"autoExpand": true,
"inputFormat": "plain",
"placeholder": "example, metes and bounds",
- "id": "efdcvf000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "efdcvf0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"prefix": "",
"customClass": "",
"suffix": "",
@@ -18898,7 +18923,7 @@
"input": true,
"label": "Crown Land File Numbers",
"tableView": true,
- "id": "emf4u7g000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "emf4u7g0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -19950,7 +19975,7 @@
},
"inputMask": "999-999-999",
"tableView": true,
- "id": "ev43oe9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "ev43oe90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -20030,7 +20055,7 @@
"tableView": true,
"autoExpand": true,
"inputFormat": "plain",
- "id": "eb3d0l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "eb3d0l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -20405,7 +20430,7 @@
"input": true,
"label": "PIN",
"tableView": true,
- "id": "eyv4fcu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "eyv4fcu000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -20498,7 +20523,7 @@
"autoExpand": true,
"inputFormat": "plain",
"placeholder": "example, metes and bounds",
- "id": "ecgeub00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "ecgeub000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"prefix": "",
"customClass": "",
"suffix": "",
@@ -20712,7 +20737,7 @@
"input": true,
"label": "Crown Land File Numbers",
"tableView": true,
- "id": "eguyyh00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "eguyyh000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
diff --git a/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json b/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json
index 7453627c..33023841 100644
--- a/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json
+++ b/forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json
@@ -995,36 +995,61 @@
"label": "Next Reviewer",
"action": "custom",
"showValidations": false,
+ "theme": "primary",
+ "size": "md",
+ "block": false,
+ "leftIcon": "",
+ "rightIcon": "",
+ "shortcut": "",
+ "description": "",
+ "tooltip": "",
+ "customClass": "",
+ "tabindex": "",
+ "disableOnInvalid": false,
+ "hidden": false,
+ "autofocus": false,
+ "disabled": false,
"tableView": false,
+ "modalEdit": false,
"key": "sendToNextReviewer",
- "customConditional": "\r\nconst UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\n\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer/site-risk-classification-officer\") || roles.includes(\"formsflow-reviewer/caseworker\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "tags": [],
+ "properties": {},
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": "",
+ "json": ""
+ },
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/site-risk-classification-officer\")) \r\n{\r\n show = true;\r\n}\r\nelse if (roles.includes(\"formsflow-reviewer/caseworker\") &&\r\ndata.srcrBundleStatus === \"srcrSrcoAccepted\")\r\n{\r\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\r\n data.siteRiskClassification !== 'notHighRisk')\r\n show = false;\r\nelse\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
"type": "button",
"custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.srcrUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Accepted'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'srcoAccepted'\r\n }); \r\n});",
"input": true,
"keyModified": true,
"placeholder": "",
"prefix": "",
- "customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": false,
- "hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
- "modalEdit": false,
"dataGridLabel": true,
"labelPosition": "top",
- "description": "",
"errorLabel": "",
- "tooltip": "",
"hideLabel": false,
- "tabindex": "",
- "disabled": false,
- "autofocus": false,
"dbIndex": false,
"customDefaultValue": "",
"calculateValue": "",
@@ -1032,7 +1057,6 @@
"widget": {
"type": "input"
},
- "attributes": {},
"validateOn": "change",
"validate": {
"required": false,
@@ -1042,66 +1066,72 @@
"multiple": false,
"unique": false
},
- "conditional": {
- "show": null,
- "when": null,
- "eq": ""
- },
- "overlay": {
- "style": "",
- "left": "",
- "top": "",
- "width": "",
- "height": ""
- },
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
- "properties": {},
"allowMultipleMasks": false,
"addons": [],
- "size": "md",
- "leftIcon": "",
- "rightIcon": "",
- "block": false,
- "disableOnInvalid": false,
- "theme": "primary",
- "id": "ehzyts"
+ "id": "eznm0q"
},
{
"label": "Approved",
"action": "custom",
"showValidations": false,
+ "theme": "primary",
+ "size": "md",
+ "block": false,
+ "leftIcon": "",
+ "rightIcon": "",
+ "shortcut": "",
+ "description": "",
+ "tooltip": "",
+ "customClass": "",
+ "tabindex": "",
+ "disableOnInvalid": false,
+ "hidden": false,
+ "autofocus": false,
+ "disabled": false,
"tableView": false,
+ "modalEdit": false,
"key": "approve",
- "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\n\r\n\r\n\r\nconst roles = UserDetails[\"role\"];\r\n\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")) {\r\n show = true;\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "tags": [],
+ "properties": {},
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": "",
+ "json": ""
+ },
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/sdm\")) {\r\n if (data.srcrBundleStatus === \"srcrCaseworkerAccepted\") \r\n show = true;\r\n else if (data.srcrBundleStatus === \"srcrSrcoAccepted\") {\r\n if (data.typeOfReview === \"applicationViaTheSocietyOfContaminatedSitesApprovedProfessionalsOfBc\" ||\r\n data.siteRiskClassification !== 'notHighRisk')\r\n show = true;\r\n else\r\n show = false;\r\n }\r\n}\r\nelse\r\n{\r\n show = false;\r\n}",
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
"type": "button",
"custom": "const submissionId = form._submission._id;\r\nconst formId = form._submission.form;\r\nconst formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\nconst filteredData = _.pick(data, data.srcrUtilKeys);\r\nconst formDataReqObj1 = { \"_id\": submissionId, \"data\": filteredData};\r\nconst formio = new Formio(formDataReqUrl);\r\nformio.saveSubmission(formDataReqObj1).then( result => {\r\nform.emit('customEvent', {\r\n type: \"actionComplete\", \r\n component: component,\r\n actionType: 'Approved'\r\n }); \r\n}).catch((error)=>{\r\n//Error callback on not Save\r\nform.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Approved'\r\n }); \r\n});",
"input": true,
"placeholder": "",
"prefix": "",
- "customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": false,
- "hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
- "modalEdit": false,
"dataGridLabel": true,
"labelPosition": "top",
- "description": "",
"errorLabel": "",
- "tooltip": "",
"hideLabel": false,
- "tabindex": "",
- "disabled": false,
- "autofocus": false,
"dbIndex": false,
"customDefaultValue": "",
"calculateValue": "",
@@ -1109,7 +1139,6 @@
"widget": {
"type": "input"
},
- "attributes": {},
"validateOn": "change",
"validate": {
"required": false,
@@ -1119,32 +1148,13 @@
"multiple": false,
"unique": false
},
- "conditional": {
- "show": null,
- "when": null,
- "eq": ""
- },
- "overlay": {
- "style": "",
- "left": "",
- "top": "",
- "width": "",
- "height": ""
- },
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
- "properties": {},
"allowMultipleMasks": false,
"addons": [],
- "size": "md",
- "leftIcon": "",
- "rightIcon": "",
- "block": false,
- "disableOnInvalid": false,
- "theme": "primary",
- "id": "etis9h8"
+ "id": "en5bg5o"
}
],
"width": 3,
@@ -1185,7 +1195,7 @@
"eq": "",
"json": ""
},
- "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\nconst taskUrl = window.location.pathname.split('/');\r\nconst taskId = taskUrl[2];\r\nconst authToken = localStorage.getItem(\"authToken\");\r\nconst bpmUrl = localStorage.getItem(\"bpmApiUrl\");\r\nvar reqUrl = bpmUrl + \"/task/\" + taskId + \"/variables\";\r\n\r\n getData(reqUrl, authToken).then((response) => {\r\n\t\tconsole.log('response',response);\r\n \r\n \t\t var applicationStatus = response.applicationStatus?response.applicationStatus.value:'';\r\n\t if(response.deraStatus.value === 'Returned'){\r\n \t\t component.disabled = true;\r\n\t component.description = 'Disabled since DERA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\r\n\t }\r\n\t else if (applicationStatus === 'Resubmit') {\r\n\r\n\t component.disabled = true;\r\n\t component.description = 'Disabled since CSSA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\t } else {\r\n\t component.description = '';\r\n\t component.disabled = false;\r\n\t instance.triggerRedraw();\r\n\t }\r\n\t \r\n });\r\n\r\n\r\nasync function getData(reqUrl, authToken) {\r\n const response = await fetch(reqUrl, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-type\": \"application/json\",\r\n Accept: \"application/json\",\r\n Authorization: \"Bearer \" + authToken,\r\n },\r\n });\r\n const data = await response.json();\r\n return data;\r\n}",
+ "customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails[\"role\"];\r\nconst taskUrl = window.location.pathname.split('/');\r\nconst taskId = taskUrl[2];\r\nconst authToken = localStorage.getItem(\"authToken\");\r\nconst bpmUrl = localStorage.getItem(\"bpmApiUrl\");\r\nvar reqUrl = bpmUrl + \"/task/\" + taskId + \"/variables\";\r\n\r\n getData(reqUrl, authToken).then((response) => {\r\n \r\n \t\t var applicationStatus = response.applicationStatus?response.applicationStatus.value:'';\r\n\t if(response.deraStatus && response.deraStatus.value === 'Returned'){\r\n \t\t component.disabled = true;\r\n\t component.description = 'Disabled since DERA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\r\n\t }\r\n\t else if (applicationStatus === 'Resubmit') {\r\n\r\n\t component.disabled = true;\r\n\t component.description = 'Disabled since CSSA resubmission in progress';\r\n\t instance.triggerRedraw();\r\n\t } else {\r\n\t component.description = '';\r\n\t component.disabled = false;\r\n\t instance.triggerRedraw();\r\n\t }\r\n\t \r\n });\r\n\r\n\r\nasync function getData(reqUrl, authToken) {\r\n const response = await fetch(reqUrl, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-type\": \"application/json\",\r\n Accept: \"application/json\",\r\n Authorization: \"Bearer \" + authToken,\r\n },\r\n });\r\n const data = await response.json();\r\n return data;\r\n}",
"logic": [],
"attributes": {},
"overlay": {
@@ -1236,7 +1246,7 @@
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
- "id": "eia18mo"
+ "id": "epaslsk"
}
],
"size": "md",
@@ -5059,7 +5069,7 @@
"attributes": {},
"components": [
{
- "id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "ele95t0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "spropertyOwnerAndOrOperator",
"tree": false,
"type": "panel",
@@ -14471,7 +14481,7 @@
"attributes": {},
"components": [
{
- "id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "eks0gu000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "exposurePathwayQuestionnaireAffectedParcel",
"tree": false,
"type": "panel",
@@ -18414,7 +18424,7 @@
}
],
"collapsible": false,
- "id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "id": "eo5mwyp0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
@@ -19583,6 +19593,77 @@
"inputType": "hidden",
"id": "e12wr4"
},
+ {
+ "label": "srcrBundleStatus",
+ "customClass": "",
+ "modalEdit": false,
+ "defaultValue": null,
+ "persistent": true,
+ "protected": false,
+ "dbIndex": false,
+ "encrypted": false,
+ "redrawOn": "",
+ "customDefaultValue": "",
+ "calculateValue": "",
+ "calculateServer": false,
+ "key": "srcrBundleStatus",
+ "tags": [],
+ "properties": {},
+ "logic": [],
+ "attributes": {},
+ "overlay": {
+ "style": "",
+ "page": "",
+ "left": "",
+ "top": "",
+ "width": "",
+ "height": ""
+ },
+ "type": "hidden",
+ "input": true,
+ "tableView": false,
+ "placeholder": "",
+ "prefix": "",
+ "suffix": "",
+ "multiple": false,
+ "unique": false,
+ "hidden": false,
+ "clearOnHide": true,
+ "refreshOn": "",
+ "dataGridLabel": false,
+ "labelPosition": "top",
+ "description": "",
+ "errorLabel": "",
+ "tooltip": "",
+ "hideLabel": false,
+ "tabindex": "",
+ "disabled": false,
+ "autofocus": false,
+ "widget": {
+ "type": "input"
+ },
+ "validateOn": "change",
+ "validate": {
+ "required": false,
+ "custom": "",
+ "customPrivate": false,
+ "strictDateValidation": false,
+ "multiple": false,
+ "unique": false
+ },
+ "conditional": {
+ "show": null,
+ "when": null,
+ "eq": ""
+ },
+ "allowCalculateOverride": false,
+ "showCharCount": false,
+ "showWordCount": false,
+ "allowMultipleMasks": false,
+ "addons": [],
+ "inputType": "hidden",
+ "id": "ec2f3y"
+ },
{
"label": "srcrUtilKeys",
"customClass": "",
diff --git a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn
index b5a91e70..17988600 100644
--- a/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn
+++ b/forms-flow-ai/forms-flow-ai-ee/forms-flow-bpm/processes/Bundling/subProcess/CSSABundleWorklow.bpmn
@@ -51,6 +51,16 @@
+
+
+ execution.setVariable('bundleStatus', "cssaTeamAccepted");
+
+
+
+ ["applicationId", "applicationStatus", "bundleStatus"]
+
+
+
${action == 'Accepted'}
@@ -426,6 +436,14 @@ system.out.println ("form signed");
+
+ execution.setVariable('bundleStatus', "cssaMgrAccepted");
+
+
+
+ ["applicationId", "applicationStatus", "bundleStatus"]
+
+
${action == 'Accepted'}
@@ -701,6 +719,16 @@ execution.setVariable('srcrStatus', "Resubmitted");
${action == 'Rejected'}
+
+
+ execution.setVariable('srcrBundleStatus', "srcrCaseworkerAccepted");
+
+
+
+ ["applicationId", "applicationStatus", "srcrBundleStatus"]
+
+
+
${action == 'Accepted'}
@@ -822,6 +850,16 @@ execution.setVariable('requestType', 'SRCR');
+
+
+ execution.setVariable('srcrBundleStatus', "srcrSrcoAccepted");
+
+
+
+ ["applicationId", "applicationStatus", "srcrBundleStatus"]
+
+
+
${action == 'Accepted'}
@@ -994,6 +1032,16 @@ system.out.println ("isSentFromSociety "+execution.getVariable('isSentFromSociet
Flow_0go33vq
+
+
+ execution.setVariable('bundleStatus', "cssaCaseworkerAccepted");
+
+
+
+ ["applicationId", "applicationStatus", "bundleStatus"]
+
+
+
${action == 'Accepted'}
@@ -1265,6 +1313,16 @@ execution.setVariable("applicationStatus", "Rejected");
${isSentFromSociety == true}
+
+
+ execution.setVariable('bundleStatus', "cssaCaseworkerAccepted");
+
+
+
+ ["applicationId", "applicationStatus", "bundleStatus"]
+
+
+
${action == 'Accepted'}