export const QUESTION_GROUP = { "questions": [ { "type": "radio", "key": "radio1", "config": { "label": "Question-1: Radio Question", "required": "true", "direction": 0, "options": [ { "displayText": "Yes", "value": 0 }, { "displayText": "No", "value": 1 } ], "displayKey": "displayText", "valueKey": "value" } }, { "type": "group", "key": "Group1", "config": { "label": "Example of Group Questions" }, "questions": [ { "type": "radio", "key": "radio2", "config": { "label": "Question-2: Radio Question", "options": [ { "label": "Yes", "value": 0 }, { "label": "No", "value": 1 } ] } }, { "type": "group", "key": "SubGroup1", "config": { "label": "Example of Sub-Group-1 Questions" }, "questions": [ { "type": "textarea", "key": "textarea1", "config": { "label": "Question-3: Textarea Question", "rows": 2, "columns": 40, "maxLength": 100, "placeholder": 'Placeholder for Question-3', "required": "true" } }, { "type": "group", "key": "Sub-SubGroup1", "config": { "label": "Example of Sub-Sub-Group-1 Questions" }, "questions": [ { "type": "radio", "key": "radio3", "config": { "label": "Question-4: Radio Question", "options": [ { "label": "Yes", "value": 0 }, { "label": "No", "value": 1 } ] } } ] }, { "type": "group", "key": "Sub-SubGroup2", "config": { "label": "Example of Sub-Sub-Group-2 Questions" }, "questions": [ { "type": "textarea", "key": "textarea2", "config": { "label": "Question-5: Textarea Question", "rows": 4, "columns": 40, "maxLength": 100, "placeholder": 'Placeholder for Question-5' } } ] } ] }, { "type": "group", "key": "SubGroup2", "config": { "label": "Example of Sub-Group-2 Questions" }, "questions": [ { "type": "dropdown", "key": "dropdown1", "config": { "label": "Question-6: Dropdown Question", "required": "true", "options": [{ "value": 1, "label": "Alabama" }, { "value": 2, "label": "Alaska" }, { "value": 3, "label": "Arizona" }] } }, { "type": "checkbox", "key": "checkbox1", "config": { "label": "Question-7: Checkbox Question", "required": true, "options": [{ "name": "Cook Dinner", "completed": false }, { "name": "Read the Material Design Spec", "completed": false }, { "name": "Upgrade Application to Angular", "completed": false }], "displayKey": "name" } }, { "type": "person-search", "key": "person-search1", "controls": [ "firstName", "lastName", "eppn" ], "config": { "label": "Question-8: Person Search question", }, "endPoints": { "searchUrl": "http://purple-sandbox.uctechnology.ucdavis.edu:3004/api/person/find/name" } }, { "type": "yes-no", "key": "yes-no1", "config": { "label": "Question-9: Yes No question", } }, { "type": "combo-box", "key": "combo-box1", "config": { "label": "Question-10: Combo Box question", "required": true, "options": [ { "name": "Alabama", "abbreviation": "AL" }, { "name": "Alaska", "abbreviation": "AK" } ], "displayKey": "name" } } ] } ] }, { "type": "group", "key": "yesnogroup", "questions": [ { "type": "yes-no", "key": "yes-no1", "config": { "label": "Question-1: Yes No question", } }, { "type": "yes-no", "key": "yes-no2", "config": { "label": "Question-2: Yes No question", } }, { "type": "yes-no", "key": "yes-no3", "config": { "label": "Question-3: Yes No question", } }, { "type": "yes-no", "key": "yes-no4", "config": { "label": "Question-4: Yes No question", } }, { "type": "yes-no", "key": "yes-no5", "config": { "label": "Question-5: Yes No question", } }, { "type": "yes-no", "key": "yes-no6", "config": { "label": "Question-6: Yes No question", } } ] } ] };