Skip to main content

QuestionPack

Description

The QuestionPack type defines a control that consists of a number of QuestionPack.Card controls. It is intended to be displayed as a modal stack of cards on top of the current conversational sequence.

Properties

  • cards (Array<QuestionPack.Card>, required) - The list of cards in the pack.
  • index (integer) - The index of the initial card to be displayed.

Example

{
"type" : "QuestionPack",
"index": 0,
"cards" : [
{
"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"
}
]
}
}
]
}