Created
May 3, 2020 14:59
-
-
Save dusual/8b8f369c1e749e98f34863e8b97c90d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "5e9539ba32812260855d84de", | |
"type": "form", | |
"tags": [ | |
"common" | |
], | |
"owner": "5e8a3d7bf1f3d54924170187", | |
"components": [ | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"label": "Urgency", | |
"key": "urgency", | |
"placeholder": "", | |
"data": { | |
"values": [ | |
{ | |
"value": "high", | |
"label": "High" | |
}, | |
{ | |
"value": "medium", | |
"label": "Medium" | |
}, | |
{ | |
"value": "low", | |
"label": "Low" | |
}, | |
{ | |
"value": "not-needed", | |
"label": "Not Needed" | |
}, | |
{ | |
"value": "unknown", | |
"label": "Unknown" | |
} | |
], | |
"json": "", | |
"url": "", | |
"resource": "", | |
"custom": "" | |
}, | |
"dataSrc": "values", | |
"valueProperty": "", | |
"defaultValue": "", | |
"refreshOn": "", | |
"filter": "", | |
"authenticate": false, | |
"template": "<span>{{ item.label }}</span>", | |
"multiple": false, | |
"protected": false, | |
"unique": false, | |
"persistent": true, | |
"hidden": false, | |
"clearOnHide": false, | |
"validate": { | |
"required": true | |
}, | |
"type": "select", | |
"labelPosition": "left-left", | |
"tags": [], | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"customConditional": "", | |
"labelWidth": 30, | |
"labelMargin": 3 | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"label": "Status", | |
"key": "status", | |
"placeholder": "", | |
"data": { | |
"values": [ | |
{ | |
"value": "closed", | |
"label": "Closed" | |
}, | |
{ | |
"value": "contacted-follow-up-person", | |
"label": "Contacted follow up person" | |
}, | |
{ | |
"value": "in-process", | |
"label": "In process" | |
}, | |
{ | |
"value": "notStarted", | |
"label": "not-started" | |
}, | |
{ | |
"value": "visited-migrant", | |
"label": "Visited migrant" | |
}, | |
{ | |
"value": "none", | |
"label": "None" | |
} | |
], | |
"json": "", | |
"url": "", | |
"resource": "", | |
"custom": "" | |
}, | |
"dataSrc": "values", | |
"valueProperty": "", | |
"defaultValue": "", | |
"refreshOn": "", | |
"filter": "", | |
"authenticate": false, | |
"template": "<span>{{ item.label }}</span>", | |
"multiple": false, | |
"protected": false, | |
"unique": false, | |
"persistent": true, | |
"hidden": false, | |
"clearOnHide": true, | |
"validate": { | |
"required": true | |
}, | |
"type": "select", | |
"labelPosition": "left-left", | |
"tags": [], | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"labelWidth": 30, | |
"labelMargin": 3 | |
}, | |
{ | |
"key": "helpprovided2", | |
"label": "Help to be provided", | |
"input": false, | |
"tag": "h2", | |
"attrs": [ | |
{ | |
"value": "red", | |
"attr": "color" | |
} | |
], | |
"className": "", | |
"content": "Help to be provided", | |
"type": "htmlelement", | |
"tags": [], | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"hideLabel": true | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"label": "Help requested", | |
"key": "needs", | |
"values": [ | |
{ | |
"value": "cash", | |
"label": "Cash assistance", | |
"shortcut": "" | |
}, | |
{ | |
"value": "water", | |
"label": "Drinking water", | |
"shortcut": "" | |
}, | |
{ | |
"value": "dryRations", | |
"label": "Dry rations", | |
"shortcut": "" | |
}, | |
{ | |
"value": "cookedFood", | |
"label": "Cooked food", | |
"shortcut": "" | |
}, | |
{ | |
"value": "medicalHelp", | |
"label": "Medical help", | |
"shortcut": "" | |
}, | |
{ | |
"value": "other", | |
"label": "Other", | |
"shortcut": "" | |
}, | |
{ | |
"value": "shelter", | |
"label": "Shelter", | |
"shortcut": "" | |
}, | |
{ | |
"value": "transportToHome", | |
"label": "Transport to home", | |
"shortcut": "" | |
} | |
], | |
"inline": true, | |
"protected": false, | |
"persistent": true, | |
"hidden": false, | |
"clearOnHide": false, | |
"validate": { | |
"required": false | |
}, | |
"type": "selectboxes", | |
"labelPosition": "top", | |
"optionsLabelPosition": "right", | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"hideLabel": true, | |
"lockKey": true | |
}, | |
{ | |
"key": "gettransportdetails", | |
"label": "Get transport details", | |
"input": false, | |
"tag": "b", | |
"attrs": [ | |
{ | |
"value": "", | |
"attr": "" | |
} | |
], | |
"className": "", | |
"content": "Please be sure to fill the following:</br>\n</br>\nCONTACT FORM:\n<ol>\n<li>Exact address</li>\n<li>Number of people</li>\n</ol>\n\nWHERE FROM\n<ol>\n<li>From district</li>\n<li>From state</li>", | |
"type": "htmlelement", | |
"hideLabel": true, | |
"tags": [], | |
"conditional": { | |
"show": "true", | |
"when": "needs", | |
"eq": "transportToHome" | |
}, | |
"properties": {} | |
}, | |
{ | |
"key": "helpprovided", | |
"label": "Help provided", | |
"input": false, | |
"tag": "h2", | |
"attrs": [ | |
{ | |
"value": "green", | |
"attr": "color" | |
} | |
], | |
"className": "", | |
"content": "Help already provided", | |
"type": "htmlelement", | |
"hideLabel": true, | |
"tags": [], | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {} | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"label": "Help provided", | |
"key": "helpProvided", | |
"values": [ | |
{ | |
"value": "cash", | |
"label": "Cash assistance", | |
"shortcut": "" | |
}, | |
{ | |
"value": "water", | |
"label": "Drinking water", | |
"shortcut": "" | |
}, | |
{ | |
"value": "dryRations", | |
"label": "Dry rations", | |
"shortcut": "" | |
}, | |
{ | |
"value": "cookedFood", | |
"label": "Cooked food", | |
"shortcut": "" | |
}, | |
{ | |
"value": "medicalHelp", | |
"label": "Medical help", | |
"shortcut": "" | |
}, | |
{ | |
"value": "other", | |
"label": "Other", | |
"shortcut": "" | |
}, | |
{ | |
"value": "shelter", | |
"label": "Shelter", | |
"shortcut": "" | |
}, | |
{ | |
"value": "transportToHome", | |
"label": "Transport to home", | |
"shortcut": "" | |
} | |
], | |
"inline": true, | |
"protected": false, | |
"persistent": true, | |
"hidden": false, | |
"clearOnHide": false, | |
"validate": { | |
"required": false | |
}, | |
"type": "selectboxes", | |
"labelPosition": "top", | |
"optionsLabelPosition": "right", | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"hideLabel": true, | |
"lockKey": true, | |
"overlay": { | |
"style": "h1" | |
} | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"inputType": "text", | |
"inputMask": "", | |
"label": "Describe medical assistance", | |
"key": "describeMedical", | |
"placeholder": "", | |
"prefix": "", | |
"suffix": "", | |
"multiple": false, | |
"defaultValue": "", | |
"protected": false, | |
"unique": false, | |
"persistent": true, | |
"hidden": false, | |
"clearOnHide": false, | |
"spellcheck": true, | |
"validate": { | |
"required": false, | |
"minLength": "", | |
"maxLength": "", | |
"pattern": "", | |
"custom": "", | |
"customPrivate": false | |
}, | |
"conditional": { | |
"show": "true", | |
"when": "needs", | |
"eq": "medicalHelp" | |
}, | |
"type": "textfield", | |
"labelPosition": "left-left", | |
"inputFormat": "plain", | |
"tags": [], | |
"properties": {}, | |
"lockKey": true, | |
"labelWidth": 30, | |
"labelMargin": 3 | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"inputType": "number", | |
"label": "How many in this group?", | |
"key": "howMany", | |
"placeholder": "", | |
"prefix": "", | |
"suffix": "", | |
"defaultValue": "", | |
"protected": false, | |
"persistent": true, | |
"hidden": false, | |
"clearOnHide": true, | |
"validate": { | |
"required": false, | |
"min": "", | |
"max": "", | |
"step": "any", | |
"integer": "", | |
"multiple": "", | |
"custom": "" | |
}, | |
"type": "number", | |
"labelPosition": "left-left", | |
"tags": [], | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"lockKey": true, | |
"labelWidth": 30, | |
"labelMargin": 3, | |
"tooltip": "If you are requesting help or providing help for a particular group, please mention how many people are there in that group." | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"inputType": "number", | |
"label": "How many in your locality", | |
"key": "howManyLocality", | |
"placeholder": "", | |
"prefix": "", | |
"suffix": "", | |
"defaultValue": "", | |
"protected": false, | |
"persistent": true, | |
"hidden": false, | |
"clearOnHide": true, | |
"validate": { | |
"required": false, | |
"min": "", | |
"max": "", | |
"step": "any", | |
"integer": "", | |
"multiple": "", | |
"custom": "" | |
}, | |
"type": "number", | |
"labelPosition": "left-left", | |
"tags": [], | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"description": "Do you have an estimate of the number of people in your locality who are in need of help?", | |
"lockKey": true, | |
"labelWidth": 30, | |
"labelMargin": 3 | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"tableView": true, | |
"label": "Notes on needs assessment", | |
"key": "notes", | |
"placeholder": "", | |
"prefix": "", | |
"suffix": "", | |
"rows": 4, | |
"multiple": false, | |
"defaultValue": "", | |
"protected": false, | |
"persistent": true, | |
"hidden": false, | |
"wysiwyg": false, | |
"clearOnHide": false, | |
"spellcheck": true, | |
"validate": { | |
"required": true, | |
"minLength": "", | |
"maxLength": "", | |
"pattern": "", | |
"custom": "" | |
}, | |
"type": "textarea", | |
"labelPosition": "top", | |
"inputFormat": "plain", | |
"tags": [], | |
"conditional": { | |
"show": "", | |
"when": null, | |
"eq": "" | |
}, | |
"properties": {}, | |
"lockKey": true | |
}, | |
{ | |
"autofocus": false, | |
"input": true, | |
"label": "Submit", | |
"tableView": false, | |
"key": "submit", | |
"size": "md", | |
"leftIcon": "", | |
"rightIcon": "", | |
"block": false, | |
"action": "submit", | |
"disableOnInvalid": false, | |
"theme": "primary", | |
"type": "button", | |
"hidden": true | |
} | |
], | |
"display": "form", | |
"submissionAccess": [ | |
{ | |
"roles": [], | |
"type": "create_all" | |
}, | |
{ | |
"roles": [], | |
"type": "read_all" | |
}, | |
{ | |
"roles": [], | |
"type": "update_all" | |
}, | |
{ | |
"roles": [], | |
"type": "delete_all" | |
}, | |
{ | |
"roles": [ | |
"5e8a3d73f1f3d5492417017a", | |
"5e8a3d73f1f3d5492417017b" | |
], | |
"type": "create_own" | |
}, | |
{ | |
"roles": [ | |
"5e8a3d73f1f3d5492417017a" | |
], | |
"type": "read_own" | |
}, | |
{ | |
"roles": [ | |
"5e8a3d73f1f3d5492417017a" | |
], | |
"type": "update_own" | |
}, | |
{ | |
"roles": [ | |
"5e8a3d73f1f3d5492417017a" | |
], | |
"type": "delete_own" | |
} | |
], | |
"title": "Needs", | |
"name": "needsFormV1", | |
"path": "forms/v1/needs", | |
"access": [ | |
{ | |
"roles": [ | |
"5e8a3d73f1f3d54924170179", | |
"5e8a3d73f1f3d5492417017a", | |
"5e8a3d73f1f3d5492417017b" | |
], | |
"type": "read_all" | |
} | |
], | |
"created": "2020-04-14T04:19:06.391Z", | |
"modified": "2020-05-02T23:55:35.717Z", | |
"machineName": "needsFormV1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment