-
Notifications
You must be signed in to change notification settings - Fork 0
Creating Surveys
Fabian Okeke edited this page Jul 30, 2018
·
2 revisions
- Every survey needs two components: a title and an element.
- Your survey must be a valid JSON object.
- You can validate your survey here.
{
"title": "Demography",
"elements": [{
"identifier": "introduction",
"type": "instruction",
"title": "Welcome to the Demography Assessment"
},
{
"identifier": "gender",
"type": "singleChoiceText",
"text": "Gender",
"items": [{
"prompt": "Male",
"value": "male"
},
{
"prompt": "Female",
"value": "female"
},
{
"prompt": "Other",
"value": "other"
}
]
},
{
"identifier": "age",
"type": "numericInteger",
"text": "Age",
"range": {
"min": 18,
"max": 99,
"unitLabel": "years"
}
}
]
}
{
"title": "mindful",
"elements": [{
"identifier": "q1-mindful-engage",
"type": "singleChoiceText",
"text": "Did you do a mindfulness-based activity today?",
"optional": false,
"items": [{
"prompt": "Yes - with app",
"value": "yes-with-app"
},
{
"prompt": "Yes - on my own",
"value": "yes-on-my-own"
},
{
"prompt": "No",
"value": "no"
}
]
}]
}
{
"title": "productivity",
"elements": [{
"identifier": "introduction",
"type": "instruction",
"title": "Welcome to the Productivity Assessment"
},
{
"identifier": "productivity",
"type": "singleChoiceText",
"text": "How will you rate your productivity today?",
"items": [{
"prompt": "Not productive at all",
"value": "not productive at all"
},
{
"prompt": "Somewhat productive",
"value": "somewhat productive"
},
{
"prompt": "Undecided",
"value": "undecided"
},
{
"prompt": "Productive",
"value": "productive"
},
{
"prompt": "Very productive",
"value": "very productive"
}
]
},
{
"identifier": "how was your day today",
"type": "textfield",
"text": "How was your day today?"
},
{
"identifier": "results",
"type": "instruction",
"title": "Thanks!",
"text": ""
}
]
}