Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.



countAnswers

Returns the number of selected answers belonging to the specified question. This function run in question context

Syntax

countAnswers(questionLabel)

or

countAnswers(questionPath)

Arguments

questionLabel: a string expression. It is the label of a question

questionPath: a string expression. It is the path of a question

Return type

number

Examples

//Q1 is a multi question with 5 options, then respondent select 2 of 5, countAnswers will return 2
number n = countAnswers("Q1");
//or
number n = countAnswers(Q1.QuestionLabel);
//or
number n = countAnswers(Resource_getResourceName(qnaireRId) + "\\Q1");

Availability

Version 4.8