The countChecked
function returns the number of items selected in a checkbox (multiselect) question.
1. Which hotel facilities did you use?
instructions: Please check all that apply.
type: checkbox
1. Restaurant
2. Bar
3. Health club
4. Swimming pool
2. Where you aware that our hotel offers these extra facilities to make your stay more enjoyable?
showif: countChecked($Q1) <= 2
type: radio
1. Yes
2. No
3. Overall how did you feel about the [* countChecked($Q1) *] hotel facilities you used?
type: radio
1. Really liked
2. Liked
3. Neither liked nor disliked
4. Disliked
5. Really disliked
Details
-
countChecked
can be included in conditional statements or used to return the number of options that were checked. - Like other checked functions, you can specify a range of options to be counted, (e.g.,
countChecked($Q1,1..3)
). - To display the count on screen, wrap
countChecked
in a Perl wrapper, as shown in Q3 above.
Comments
0 comments
Please sign in to leave a comment.