{"name": "Sample_form", "type": "survey", "title": "sample_form", "id_string": "Sample_form", "sms_keyword": "Sample_form", "default_language": "English", "version": "2018111401", "style": "pages", "namespaces": "esri=\"http://esri.com/xforms\"\nenk=\"http://enketo.org/xforms\"", "children": [{"name": "start000000", "label": "start", "type": "start"}, {"name": "end00000000", "label": "end", "type": "end"}, {"name": "phonenumber", "type": "phonenumber"}, {"name": "username", "type": "username"}, {"name": "email", "type": "email"}, {"name": "timestarted", "label": "start time", "type": "calculate", "bind": {"calculate": "format-date-time(now(),'%H:%M')"}}, {"name": "staff_survey", "label": "e4e staff's survey", "type": "note"}, {"name": "e4e_staff", "label": "**e4e staff**", "type": "group", "children": [{"name": "staff01", "label": "Do you work at e4e?", "type": "select one", "bind": {"required": "TRUE"}, "children": [{"name": "yes", "label": "Yes"}, {"name": "no", "label": "No"}]}]}, {"name": "staff_info", "type": "group", "bind": {"relevant": "${staff01} = 'yes'"}, "children": [{"name": "staff_info01", "label": "**Staff Personal Information**", "type": "group", "children": [{"name": "staff_name", "label": "1. What is your name?", "type": "text", "bind": {"required": "TRUE"}}, {"name": "state", "label": "2. What state are you from", "type": "select one", "bind": {"required": "TRUE"}, "children": [{"name": "abia", "label": "Abia"}, {"name": "adamawa", "label": "Adamawa"}, {"name": "anambra", "label": "Anambra"}, {"name": "akwa_ibom", "label": "Akwa-Ibom"}, {"name": "bauchi", "label": "Bauchi"}, {"name": "bayelsa", "label": "Bayelsa"}, {"name": "benue", "label": "Benue"}, {"name": "borno", "label": "Borno"}, {"name": "cross_river", "label": "Cross River"}, {"name": "delta", "label": "Delta"}, {"name": "ebonyi", "label": "Ebonyi"}, {"name": "edo", "label": "Edo"}, {"name": "ekiti", "label": "Ekiti"}, {"name": "enugu", "label": "Enugu"}, {"name": "federal_cap", "label": "Federal Capital Territory"}, {"name": "gombe", "label": "Gombe"}, {"name": "imo", "label": "Imo"}, {"name": "jigawa", "label": "Jigawa"}, {"name": "kaduna", "label": "Kaduna"}, {"name": "kano", "label": "Kano"}, {"name": "katsina", "label": "Katsina"}, {"name": "kebbi", "label": "Kebbi"}, {"name": "kogi", "label": "Kogi"}, {"name": "kwara", "label": "Kwara"}, {"name": "lagos", "label": "Lagos"}, {"name": "nasarawa", "label": "Nasarawa"}, {"name": "niger", "label": "Niger"}, {"name": "ogun", "label": "Ogun"}, {"name": "ondo", "label": "Ondo"}, {"name": "osun", "label": "Osun"}, {"name": "oyo", "label": "Oyo"}, {"name": "plateau", "label": "Plateau"}, {"name": "rivers", "label": "Rivers"}, {"name": "sokoto", "label": "Sokoto"}, {"name": "taraba", "label": "Taraba"}, {"name": "yobe", "label": "Yobe"}, {"name": "zamfara", "label": "Zamfara"}]}, {"name": "age", "label": "3. How old are you?", "hint": "In numbers", "type": "integer", "bind": {"required": "TRUE"}}, {"name": "hobbies", "label": "4. What are your hobbies?", "type": "text", "bind": {"required": "TRUE"}}]}, {"name": "work_info", "label": "Work Information", "type": "group", "children": [{"name": "resumption", "label": "5. When did you join e4e?", "type": "date", "bind": {"constraint": ".<=date(today())", "jr:constraintMsg": "Date should not be later than today", "required": "TRUE"}}, {"name": "department", "label": "6. What department are you working in?", "type": "select one", "bind": {"required": "TRUE"}, "children": [{"name": "phd", "label": "PHD"}, {"name": "people_and_business", "label": "People and business"}, {"name": "web_dev", "label": "Web dev"}, {"name": "design", "label": "Design"}, {"name": "other", "label": "Other"}]}, {"name": "department_other", "label": "Specify other.", "type": "text", "bind": {"relevant": "selected(../department, 'other')"}}, {"name": "work_station", "label": "7. Take a picture of your work station?", "type": "photo", "bind": {"required": "TRUE"}, "control": {"appearance": "new"}}]}, {"name": "onboarding", "label": "**Onboarding Process**", "type": "group", "control": {"appearance": "field-list"}, "children": [{"name": "onboarding01", "label": "8. How was the onboarding process", "type": "select one", "bind": {"required": "TRUE"}, "children": [{"name": "very_good", "label": "Very good"}, {"name": "good", "label": "good"}, {"name": "average", "label": "Average"}, {"name": "poor", "label": "Poor"}]}, {"name": "onboarding02", "label": "9. Which of the following onboarding have you done?", "type": "select all that apply", "bind": {"required": "TRUE"}, "children": [{"name": "slack", "label": "Slack"}, {"name": "culture", "label": "Culture"}, {"name": "click_up", "label": "Click up"}, {"name": "finance", "label": "Finance"}, {"name": "health_and_safety", "label": "Health and safety"}, {"name": "communication", "label": "Communication"}, {"name": "powerpoint", "label": "PowerPoint"}, {"name": "other", "label": "Other"}]}, {"name": "onboarding02_other", "label": "Specify other.", "type": "text", "bind": {"relevant": "selected(../onboarding02, 'other')"}}]}, {"name": "parent44", "label": "10. Collect the GPS coordinates.", "type": "geopoint", "bind": {"required": "TRUE"}, "control": {"appearance": "w4", "accuracyThreshold": "5"}}]}, {"name": "end_staff", "label": "End of Survey", "type": "note", "bind": {"relevant": "${staff01}='yes'"}}, {"name": "end_not_staff", "label": "Not a staff. End of Survey", "type": "note", "bind": {"relevant": "${staff01}='no'"}}, {"name": "meta", "type": "group", "control": {"bodyless": true}, "children": [{"name": "instanceID", "type": "calculate", "bind": {"readonly": "true()", "calculate": "concat('uuid:', uuid())"}}, {"name": "instanceName", "type": "calculate", "bind": {"calculate": "concat(${start000000},' ',${timestarted},'_','Sample_form','_',${staff_name})"}}]}]}