Actions

StatFunctions: Difference between revisions

From LimeSurvey Manual

({{FeatureStarting|4.1.0}})
(Add info about javascript)
Line 9: Line 9:


[[File:StatFunctionsSample.png]]
[[File:StatFunctionsSample.png]]
This plugin use [[ExpressionManagerStart]] plugin and create two functions. This 2 functions don't have javascript part, then the check is done only when move in survey.


[[Category:Plugins]][[Category:Core Plugins]]
[[Category:Plugins]][[Category:Core Plugins]]

Revision as of 09:04, 4 December 2020

 Hint: This features is available starting in version 4.1.0


Functions for expression manager to count some statistics data :

  • statCount(QuestionCode.sgqa[, submitted = true]) : count the answered question of QuestionCode already submitted. You can count the submitted survey with statCount('sid') for example.
  • statCountIf(QuestionCode.sgqa, value[, submitted = true]) : count the response where answer to question QuestionCode are value.

You can find an usage of this 2 functions in survey_archive_statCountFunctionsTest inside test directory.

This plugin use ExpressionManagerStart plugin and create two functions. This 2 functions don't have javascript part, then the check is done only when move in survey.