- Posts: 13
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
2 years 1 week ago #227875
by cpmadmin
unable to obtain score from array to include in email was created 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.
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.
Attachments:
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13045
- Thank you received: 4014
2 years 1 week ago #227880
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic unable to obtain score from array to include in email
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
2 years 1 week ago #227881
by cpmadmin
Replied by cpmadmin on topic unable to obtain score from array to include in email
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)
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13045
- Thank you received: 4014
2 years 1 week ago - 2 years 1 week ago #227884
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic unable to obtain score from array to include in email
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
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
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 968
- Thank you received: 220
2 years 1 week ago #227886
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic unable to obtain score from array to include in email
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Please Log in to join the conversation.
- cpmadmin
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
2 years 1 week ago #227887
by cpmadmin
Replied by cpmadmin on topic unable to obtain score from array to include in email
Thanks Tammo,
That is perfect.
That is perfect.
Please Log in to join the conversation.