Welcome to the LimeSurvey Community Forum

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

Calculate % correct and email results

  • bdhibbs
  • bdhibbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #89782 by bdhibbs
Calculate % correct and email results was created by bdhibbs
Hi Everyone,
First post and new user to limesurvey. My hosting company had this in a list of free applications so I want to give it a try.

I created a quick quiz. I want it to calculate and show percentage correct and I want an email to go to the participant along with the person who created the quiz.

Thank you!
-B
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago #89817 by DenisChenu
Replied by DenisChenu on topic Calculate % correct and email results

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • bdhibbs
  • bdhibbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #90029 by bdhibbs
Replied by bdhibbs on topic Calculate % correct and email results
Thanks Denis!
I reviewed the documentation but Im confused where the code goes.

Any help appreciated.


-Brian
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago #90045 by DenisChenu
Replied by DenisChenu on topic Calculate % correct and email results
Did you activate assessment and test it ?

In the confirmation mail (for token survey) you can send information from the survey. And you can do some calculation with Expression Manager.

Tell us what you test, you done.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • bdhibbs
  • bdhibbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #90156 by bdhibbs
Replied by bdhibbs on topic Calculate % correct and email results
Hi Denis,
I activated the assessment value and I see it for each questions. I'm using a value of 1 for correct and 0 for incorrect. I am wondering how to calculate score and show the final % to the person who took it and also how to email final to the person who took the quiz and the person who is hosting the quiz.

I attached what I have so far.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago #90176 by DenisChenu
Replied by DenisChenu on topic Calculate % correct and email results
You knwo the number of exact question,

Then you can use EM to calculate the percentage.

{sum(Q1.value,Q2.value,Q3.value ....)} : it's the sum of all assesment value for this user.

After do {sum(Q1.value,Q2.value,Q3.value ....)/40*100} to have the percentage.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • bdhibbs
  • bdhibbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago #90238 by bdhibbs
Replied by bdhibbs on topic Calculate % correct and email results
Every time I go into the EM I get a table. Do I attach this code to the survey question groups? All I get is a test column and a description column when I click on the EM icon.



Sorry for all the questions.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 months ago #90280 by DenisChenu
Replied by DenisChenu on topic Calculate % correct and email results
You don't have to go to Expression Manager, but USE expression manager ;).

This link goes to a documentation for using EM on your own text.

Just try in a question text:
question number : {QID} : you use EM
or
{if(1==0,"This is the end of world","")}

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • bdhibbs
  • bdhibbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 3 months ago - 11 years 3 months ago #90301 by bdhibbs
Replied by bdhibbs on topic Calculate % correct and email results
Ok,
- Do I put the assessment values inside the "Message:" portion of Assessment Rules?

- Do I need to put anything inside the min max fields?

- Is that correct where I put the TOTAL code?

- Where is the link to the survey and how do I email it out to members in a group?

Thanks
Last edit: 11 years 3 months ago by bdhibbs. Reason: updated info.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 months ago #90340 by DenisChenu
Replied by DenisChenu on topic Calculate % correct and email results
Hello,

{TOTAL} mean the {TOTAL} = {sum(Q1.value,Q2.value,Q3.value ....)}

But not sure you can do calculation with TOTAL,

Test
{sum(Q1.value,Q2.value,Q3.value ....)/40*100}

In place of {TOTAL}

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • bdhibbs
  • bdhibbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #90372 by bdhibbs
Replied by bdhibbs on topic Calculate % correct and email results
Hi Denis,
I placed that code but it doesn't work. It takes me directly to a thank you page once I fill out the quiz.

Do I have to include Q0/Q-0 in the code?

Can you also tell me where I can view the results of the survey/quiz?

Thanks
The topic has been locked.
  • bdhibbs
  • bdhibbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #90641 by bdhibbs
Replied by bdhibbs on topic Calculate % correct and email results
Hi Denis,
If I was to give you an admin password do you think you could check out the quiz ?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose