[Logo] QuestionPro - Research Access Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
using the $score variable  XML
Forum Index -> Online Survey Software
Author Message
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?

vivek

Guru

Joined: 14/12/2005 19:43:37
Messages: 39
Offline

Bruce,

You can try the following:

#set ($score = $survey.sumValues("Q49"))

This will store the value into the database.
-v
 
Forum Index -> Online Survey Software
Go to:   
© 2005 Survey Analytics LLC   |   Online Surveys  |   Web Polls  |   Privacy Policy  |   Email Marketing Software  |   Survey