Skip to content

Commit

Permalink
Merge pull request #551 from bcgov/SRS-122-fix
Browse files Browse the repository at this point in the history
add SIA role name in SRCR form
  • Loading branch information
nikhila-aot authored Oct 18, 2023
2 parents 176539a + 19db938 commit b630649
Showing 1 changed file with 58 additions and 48 deletions.
106 changes: 58 additions & 48 deletions forms-flow-ai/epd-forms/bundling/Site Risk Classification Report.json
Original file line number Diff line number Diff line change
Expand Up @@ -2300,80 +2300,90 @@
"components": [
{
"label": "Role",
"disabled": true,
"tableView": true,
"customDefaultValue": "var b =JSON.parse(localStorage.getItem('UserDetails'))\r\nif(b.groups.indexOf('/formsflow/formsflow-client') > -1 )\r\n{\r\n value = 'Client'\r\n}\r\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/csap') > -1 )\r\n{\r\n value = 'Approved Professional'\r\n}\r\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/csap-society') > -1 )\r\n{\r\n value = 'CSAP Society'\r\n}\r\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/cssa-team') > -1 )\r\n{\r\n value = 'CSSA Team'\r\n}\r\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/cssa-manager') > -1 )\r\n{\r\n value = 'CSSA Manager'\r\n}\r\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/caseworker') > -1 )\r\n{\r\n value = 'Caseworker'\r\n}\r\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/sdm') > -1 )\r\n{\r\n value = 'Statutory Decision Maker'\r\n}\r\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/site-risk-classification-officer') > -1 )\r\n{\r\n value = 'Site Risk Classification Officer'\r\n}",
"key": "role",
"type": "textfield",
"input": true,
"labelPosition": "top",
"placeholder": "",
"description": "",
"tooltip": "",
"prefix": "",
"customClass": "",
"suffix": "",
"multiple": false,
"defaultValue": null,
"protected": false,
"unique": false,
"persistent": true,
"widget": {
"type": "input"
},
"inputMask": "",
"displayMask": "",
"allowMultipleMasks": false,
"customClass": "",
"tabindex": "",
"autocomplete": "",
"hidden": false,
"clearOnHide": true,
"refreshOn": "",
"redrawOn": "",
"modalEdit": false,
"dataGridLabel": false,
"labelPosition": "top",
"description": "",
"errorLabel": "",
"tooltip": "",
"hideLabel": false,
"tabindex": "",
"showWordCount": false,
"showCharCount": false,
"mask": false,
"autofocus": false,
"spellcheck": true,
"disabled": true,
"tableView": true,
"modalEdit": false,
"multiple": false,
"persistent": true,
"inputFormat": "plain",
"protected": false,
"dbIndex": false,
"case": "",
"truncateMultipleSpaces": false,
"encrypted": false,
"redrawOn": "",
"clearOnHide": true,
"customDefaultValue": "var b =JSON.parse(localStorage.getItem('UserDetails'))\nif(b.groups.indexOf('/formsflow/formsflow-client') > -1 )\n{\n value = 'Client'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/csap') > -1 )\n{\n value = 'Approved Professional'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/csap-society') > -1 )\n{\n value = 'CSAP Society'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/cssa-team') > -1 )\n{\n value = 'CSSA Team'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/cssa-manager') > -1 )\n{\n value = 'CSSA Manager'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/caseworker') > -1 )\n{\n value = 'Caseworker'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/sdm') > -1 )\n{\n value = 'Statutory Decision Maker'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/site-risk-classification-officer') > -1 )\n{\n value = 'Site Risk Classification Officer'\n}\nelse if(b.groups.indexOf('/formsflow/formsflow-reviewer/site-information-advisor') > -1 )\n{\n value = 'Site Information Advisor'\n}",
"calculateValue": "",
"calculateServer": false,
"widget": {
"type": "input"
},
"attributes": {},
"allowCalculateOverride": false,
"validateOn": "change",
"validate": {
"required": false,
"pattern": "",
"customMessage": "",
"custom": "",
"customPrivate": false,
"strictDateValidation": false,
"multiple": false,
"unique": false,
"json": "",
"minLength": "",
"maxLength": "",
"pattern": ""
"strictDateValidation": false,
"multiple": false,
"unique": false
},
"unique": false,
"errorLabel": "",
"errors": "",
"key": "role",
"tags": [],
"properties": {},
"conditional": {
"show": null,
"when": null,
"eq": ""
"eq": "",
"json": ""
},
"customConditional": "",
"logic": [],
"attributes": {},
"overlay": {
"style": "",
"page": "",
"left": "",
"top": "",
"width": "",
"height": ""
},
"allowCalculateOverride": false,
"encrypted": false,
"showCharCount": false,
"showWordCount": false,
"properties": {},
"allowMultipleMasks": false,
"type": "textfield",
"input": true,
"refreshOn": "",
"dataGridLabel": false,
"addons": [],
"mask": false,
"inputType": "text",
"inputFormat": "plain",
"inputMask": "",
"displayMask": "",
"spellcheck": true,
"truncateMultipleSpaces": false,
"id": "ex4sns9"
"id": "e3l63ph",
"defaultValue": ""
}
],
"size": "md",
Expand Down Expand Up @@ -5069,7 +5079,7 @@
"attributes": {},
"components": [
{
"id": "ele95t0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "spropertyOwnerAndOrOperator",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -14481,7 +14491,7 @@
"attributes": {},
"components": [
{
"id": "eks0gu000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "exposurePathwayQuestionnaireAffectedParcel",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -18424,7 +18434,7 @@
}
],
"collapsible": false,
"id": "eo5mwyp0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down Expand Up @@ -19738,4 +19748,4 @@
]
}
]
}
}

0 comments on commit b630649

Please sign in to comment.