brucea
Beginner
Joined: 03/12/2006 16:23:13
Messages: 2
Offline
|
I've been using the custom logic part of surveys, and have had success in custom branching, assigning variables and more.
One question - has anyone used the $score variable?
Theoretically it is assigned the results of a sumvalues.
I've tried it in both the survey body, and even in the finish options, eg Your response has been saved and recorded with ID ${response_id}.
and hopefully a score of ${score}
but the score never evaluates.
The sumvalues method works well in branching, as:
#if ( (${Q1} == 1) && (${Q2} == 1) && (${Q3} == 1 ) && ($survey.sumValues("Q4") >= 49) )
$survey.updateCustom5("Qualified")
but I really wanted to assign the results of sumValues("Q4") to either a custom variable, or even $score, if I could display it at the end of the survey.
Anyone played with this?
|