Skip to main content

QuestionPack.Card

Description

The QuestionPack.Card type defines a presentational component that can appear as part of a QuestionPack.

Properties

  • title (string, required) - The title of the card.
  • question (string) - A longer description, usually asking a question in the context of the title.
  • options (OptionGroup, required) - The list of options available as answers to the question.

Example

{
"title" : "Becoming easily annoyed or irritable.",
"question" : "Over the last 2 weeks, how often have you been bothered by the above problem?",
"options" : {
"type" : "OptionGroup",
"maxSelections" : 4,
"onSubmit" : {
"type" : "User.Submitted<Screening.Response>",
"value" : {
"key" : "anxiety_list_gad_q6",
"type" : "Screening.Response"
}
},
"options" : [
{
"exclusive" : true,
"label" : "Not at all",
"value" : "Not_At_All"
},
{
"exclusive" : true,
"label" : "Several days",
"value" : "Several_Days"
},
{
"exclusive" : true,
"label" : "More than half the days",
"value" : "More_Than_Half"
},
{
"exclusive" : true,
"label" : "Nearly everyday",
"value" : "Nearly_Everyday"
}
]
}
}