export const SAMPLE_FORM_JSON = [ { "type": "group", "key": "chemical", "config": { "label": "Chemical Hazards", "required": true }, "meta": { "introQuestion": 'Do you have any chemical hazards in your lab?' }, "questions": [ { 'type': 'dropdown', 'key': 'multiDropdown', 'config': { 'label': 'Test for using dropdown with multiple selections', 'type': 'text', 'multiple': true, 'options': [{label: 'Option 1', value: '1'}, {label: 'Option2', value: '2'}, {label: 'Other', value: 'Other'}] } }, { 'type': 'other', 'key': 'multiDropdownOther', 'config': { 'label': 'Using other with multi-dropdown', 'type': 'text', 'parentKey': 'multiDropdown', 'keyword': 'Other', 'inputType': 'textbox' } }, { "type" : "iterable", "key" : "chemicalIterable", "config" : { "questions" : [ { "type" : "group", "key" : "chemicalIterable", "config" : { "label" : "Chemical Hazards" }, "meta" : { "introQuestion" : "Do you have any chemical hazards in your lab?" }, "questions" : [ { "type" : "dropdown", "key" : "chemicalName", "config" : { "placeholder" : "Chemical", "required" : true, "options": [{label: 'Acetic Acid', value: 'Acetic Acid'}, {label: 'Acetone', value: 'Acetone'}] } }, { "type" : "input-unit", "key" : "exposureLimit", "config" : { "placeholder" : "Exposure limit", "type" : "number", "required" : true, "options": [{label: 'degree C', value: 'degree C'}, {label: 'degree F', value: 'degree F'}, {"label":"", "value": ""}] } }, { "type" : "dropdown", "key" : "exposureLimitCategory", "config" : { "placeholder" : "Exposure Limit Category", "required" : true, "options": [{label: 'degree C', value: 'degree C'}, {label: 'Other', value: 'Other'}] }, "endPoints" : { "searchUrl" : "api/reference/exposure_assesses/dropdown" } }, { "type" : "other", "key" : "exposureLimitCategoryOther", "config" : { "placeholder" : "Other Exposure Limit Category", "parentKey" : "exposureLimitCategory", "keyword" : "Other", "inputType" : "textbox" } } ] } ] } } , { "type" : "person-search", "key" : "monitoredEmployee", "config" : { "label" : "Monitored Employee" }, "endPoints" : { "searchUrl" : "http://localhost:3000/api/person/search/name" } }, { "type": "yes-no", "key": "c13", "config": { "label": "C13. Working with Category 2 or higher engineered nanomaterials" } }, { "type": "yes-no", "key": "c14", "config": { "label": "C14. Minor chemical spill cleanup" } }, { "type": "yes-no", "key": "c15", "config": { "label": "C15. Major chemical spill cleanup" } }, { "type": "input-box", "key": "c16", "config": { "label": "C16. Test for using input number", "type": "number" } }, { "type": "input-box", "key": "c17", "config": { "label": "C17. Test for using input text", "type": "text" } }, { "type" : "dropdown", "key" : "monitoringStrategy", "config" : { "label": "C17.5. Test for using dropdown", "placeholder" : "Monitoring Strategy" }, "endPoints": { "searchUrl": "http://localhost:3000/api/reference/activities/dropdown" } }, { "type": "input-unit", "key": "c18", "config": { "label": "C18 Exposure limits", "type": "number", "options": [{label: 'degree C', value: 'degree C'}, {label: 'degree F', value: 'degree F'}] } }, { "type": "location-select", "key": "monitoredLocation", "config": { // "label": "C18. Please provide monitored location" }, "endPoints": { "buildingUrl": "http://localhost:3000/api/location/buildings/search", "roomUrl": "http://localhost:3000/api/location/rooms/search" } }, { 'type': 'dropdown', 'key': 'c19', 'config': { 'label': 'C19. Test for using dropdown with textbox', 'type': 'text', 'options': [{label: 'Option 1', value: '1'}, {label: 'Option2', value: '2'}, {label: 'Other', value: 'Other'}] } }, { 'type': 'other', 'key': 'c20', 'config': { 'label': 'Using other with dropdown', 'type': 'text', 'parentKey': 'c19', 'keyword': 'Other', 'inputType': 'textbox' } }, { 'type': 'checkbox', 'key': 'activities', 'config': { 'label': 'Activities', 'options': [ { 'name': 'Electric Drill', 'completed': false }, { 'name': 'Electric Saws', 'completed': false }, { 'name': 'Heating - Hot Plate', 'completed': false }, { 'name': 'Heating - Other', 'completed': false }, { 'name': 'Manual Saws', 'completed': false }, { 'name': 'None', 'completed': false }, { 'name': 'Open Abdomen', 'completed': false }, { 'name': 'Other', 'completed': false } ], 'displayKey': 'name' } }, { 'type': 'other', 'key': 'c18', 'config': { 'label': 'Using other with checkbox', 'type': 'text', 'parentKey': 'activities', 'keyword': 'Other', 'inputType': 'dropdown', 'dropdownOptions': [{label: 'Option 1', value: '2'}, {label: 'Option2', value: '2'}, { label: 'Other', value: 'Other' }] } }, { "type": "checkbox", "key": "ck01", "config": { "label": "This is checkbox", "options": [ { "name": "value something" } ] } }, { "type": "checkbox", "key": "ck02", "config": { "label": "check box 2 lable", "options": [ { "name": "value something 2" } ] } }, { "type": "datepicker", "key": "monitoredDate", "config": { "placeholder": "Date Monitored", "required": true } } ] } ];