Welcome, Guest
Username: Password: Remember me

TOPIC: Calculate % correct and email results

Calculate % correct and email results 1 year 7 months ago #89782

  • bdhibbs
  • bdhibbs's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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 administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #89817

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6205
  • Thank you received: 787
  • Karma: 238
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90029

  • bdhibbs
  • bdhibbs's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
Thanks Denis!
I reviewed the documentation but Im confused where the code goes.

Any help appreciated.


-Brian
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90045

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6205
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90156

  • bdhibbs
  • bdhibbs's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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.
Attachments:
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90176

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6205
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90238

  • bdhibbs
  • bdhibbs's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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.
Attachments:
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90280

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6205
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90301

  • bdhibbs
  • bdhibbs's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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
Attachments:
Last Edit: 1 year 7 months ago by bdhibbs. Reason: updated info.
The administrator has disabled public write access.

Re: Calculate % correct and email results 1 year 7 months ago #90340

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6205
  • Thank you received: 787
  • Karma: 238
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.129 seconds
Donation Image