Skip to content

Commit

Permalink
removed required valdiations for reviewer assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
midhun-aot committed Jan 29, 2024
1 parent 97fb67c commit 261edd0
Show file tree
Hide file tree
Showing 6 changed files with 23,918 additions and 23,578 deletions.
22 changes: 11 additions & 11 deletions forms-flow-ai/epd-forms/Site Risk Classification Report.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
"height": ""
},
"type": "button",
"custom": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))\r\nconst roles = UserDetails[\"role\"];\r\n\r\nif(roles.includes(\"formsflow-reviewer/cssa-manager\") && \r\n(data.selectSdm===''|| data.selectCaseworker===''||data.selectSrco===''))\r\n{\r\n alert('Please assign reviewers to continue!');\r\n \r\n}\r\nelse\r\n{\r\n const submissionId = form._submission._id;\r\n const formId = form._submission.form;\r\n const formDataReqUrl = form.formio?form.formio.formUrl:(localStorage.getItem('customSubmissionUrl')+'/form/'+formId)+'/submission/'+submissionId;\r\n const formDataReqObj1 = { \"_id\": submissionId, \"data\": data};\r\n const formio = new Formio(formDataReqUrl);\r\n formio.saveSubmission(formDataReqObj1).then( result => {\r\n form.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\n form.emit('customEvent', {\r\n type: \"actionError\", \r\n component: component,\r\n actionType:'Accepted'\r\n }); \r\n });\r\n}",
"custom": " form.emit('customEvent', {\n type: \"actionError\", \n component: component,\n actionType:'Accepted'\n }); ",
"input": true,
"keyModified": true,
"placeholder": "",
Expand Down Expand Up @@ -305,7 +305,7 @@
"showWordCount": false,
"allowMultipleMasks": false,
"addons": [],
"id": "ei0fqxf"
"id": "efzg6y"
},
{
"label": "Approved",
Expand Down Expand Up @@ -785,7 +785,7 @@
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"required": false,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
Expand Down Expand Up @@ -847,7 +847,7 @@
"include": "score",
"threshold": 0.3
},
"id": "el5mtlj",
"id": "eqqpt0n",
"defaultValue": "",
"sort": ""
}
Expand Down Expand Up @@ -928,7 +928,7 @@
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"required": false,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
Expand Down Expand Up @@ -990,7 +990,7 @@
"include": "score",
"threshold": 0.3
},
"id": "ea94sof",
"id": "e0djsx",
"defaultValue": "",
"sort": ""
}
Expand Down Expand Up @@ -1071,7 +1071,7 @@
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": true,
"required": false,
"onlyAvailableItems": false,
"customMessage": "",
"custom": "",
Expand Down Expand Up @@ -1133,7 +1133,7 @@
"include": "score",
"threshold": 0.3
},
"id": "epvp7yj",
"id": "ee27bwl",
"defaultValue": "",
"sort": ""
}
Expand Down Expand Up @@ -4303,7 +4303,7 @@
"attributes": {},
"components": [
{
"id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "ele95t0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "spropertyOwnerAndOrOperator",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -13713,7 +13713,7 @@
"attributes": {},
"components": [
{
"id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eks0gu000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "exposurePathwayQuestionnaireAffectedParcel",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -17656,7 +17656,7 @@
}
],
"collapsible": false,
"id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eo5mwyp0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down
Loading

0 comments on commit 261edd0

Please sign in to comment.