Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

unable to obtain score from array to include in email

  • cpmadmin
  • cpmadmin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 1 week ago #227875 by cpmadmin
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
We created an assessment that is comprised of three sections.
I am able to create a page/question to summarize the assessment report and incorporate scoring by referencing  {PERC}.  This can only be done in the message of the assessment scoring section. 

What i am having problems with is creating an equation for the purposes of calculating the group scores which has a single question (array).  I created a separate question (equation) in the same group in order to calculate the Score.  all it get are 0 and no calculations are done. 

I am able to insert
{ASSESSMENT_CURRENT_TOTAL}  into the email templates as well as the summary question page.  

Again the only issue i have is with the logic /first principles methods required to generate the score for each group. 

 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 week ago #227880 by Joffm
This is the usual behaviour.
Assessments are not stored in the database, except "current_total".

You have to use ExpressionScript. In my opinion  these "assessment rules" are outdated since Expression Manager/Script was implemented.
You still may use the "assessment values", which you access by the property ".value" resp. ".valueNAOK"

Joffm
I wonder why you did not answer the initial questions

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • cpmadmin
  • cpmadmin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 1 week ago #227881 by cpmadmin
Thanks Joffm, i know that the assessment doesnt store the values in the db. That is why i created another question that is a equation in order to store db and then be able to reference it.
The issue that i am having is that i have tried all syntax for the EM but have not been able to get it to function. What is the proper syntax for obtaining the total score for the question (array). More importantly is there something else that i am missing aside from creating another question (equation)

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 week ago - 2 years 1 week ago #227884 by Joffm
What are you doing now?

And the score of an array?
Do you want yo use the assessment values or the codes of the answer options?

Either{sum(that.Q1.NAOK)}
or
{sum(that.Q1.valueNAOK)}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 1 week ago by Joffm.

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 1 week ago #227886 by tammo
Maybe this helps:

www.respondage.nl/scoring_an_array/

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • cpmadmin
  • cpmadmin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 1 week ago #227887 by cpmadmin
Thanks Tammo,

That is perfect.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose