Allowing other answers to multiple-choice and checkbox questions
The attribute *other allows users to type in an answer to a multiple-choice or checkbox question. For example:
*question: What is your favorite ice cream flavor?
*other
Strawberry
Rocky road
Cookies and cream
*save: favoriteIceCream
Here, the variable favoriteIceCream will take the value Strawberry, Rocky road, Cookies and Cream, or the flavor they type in the box.
Likewise, *other can be used in checkbox questions:
*question: What toppings do you want on your pizza?
Mushrooms
Pineapple
Ham
Onion
Italian sausage
*type: checkbox
*other
*save: pizzaToppings
When you allow for *other answers to a multiple-choice question, multiple additional answers are allowed. As soon as the user starts typing in the “other” box, another one will appear right below. Also, you will notice that the answers the user types in are selected by default.
|