Feature Update – checkbox questions, *maintain update
Here’s what’s new: |
Checkbox QuestionsNow you can ask your users checkbox-style questions. Simply write and indent “*type: checkbox” beneath your *question to allow your users to select as many responses as they wish. As we’ve done in our example, you can still use the *save keyword with checkbox questions. When saved answers are recalled, all of the answers the user selected in the question will be displayed. For example, if a user selected “dog” and “cat” in our example, then they would see “dog, cat” in the following: Using the *save keyword with checkbox questions is especially useful if you’d like to provide follow-up questions or text to users who select specific responses. Since points are the only content you can indent beneath checkbox responses, the *save keyword will help you add more advanced follow-up. Customizing responses for specific items in collectionsAnswers to checkbox questions are stored in what’s called a “collection.” You may recall that collections are also used for chart data. Let’s return to the pet checkbox question. If a user selected “Dog,” “Cat,” and “Hamster/other small furry thing” then the collection of their answers would be stored as this in GuidedTrack language: [“Dog”, “Cat”, “Hamster/other small furry thing”] Because we’ve also used the *save keyword, this collection will be saved by the variable/codename “pets.” Later, if you wish to target only cat people with follow-up questions, you would use the following code to test whether the “Cat” answer is “in” their “pets” collection: Note: Capitalization is important. We couldn’t write “cat” here because our exact answer option read “Cat” |