- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
problems scoring the points from the right answers
- dani1985
- Topic Author
- Offline
- New Member
Less
More
9 years 5 months ago #113599
by dani1985
problems scoring the points from the right answers was created by dani1985
Hi everybody,
i have 10 Questions, which can be answered with YES or NO. Within the assessment manager i have rated the right answer with point and the wrong answer with no points.
So, now i have made an 11th hidden answer (in the same question block) and i want to store the sum of the points from question of the first block (1-10).
After this question block there are several more blocks but this questions and answers would not be counted.
The problem i have is how to count ?
Can anyone help me?
Does anyone have an simple example? (the example on the wiki page doesnt work)
Thx in advance!
i have 10 Questions, which can be answered with YES or NO. Within the assessment manager i have rated the right answer with point and the wrong answer with no points.
So, now i have made an 11th hidden answer (in the same question block) and i want to store the sum of the points from question of the first block (1-10).
After this question block there are several more blocks but this questions and answers would not be counted.
The problem i have is how to count ?
Can anyone help me?
Does anyone have an simple example? (the example on the wiki page doesnt work)
Thx in advance!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
9 years 5 months ago #113604
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic problems scoring the points from the right answers
Unfortunately, just saying "the example on the wiki page doesnt work" doesn't help much without giving details on what you tried.
You should be able to use the Expression Manager Qcode.value variable in an equation type question. Something like this:
You should be able to use the Expression Manager Qcode.value variable in an equation type question. Something like this:
Code:
{sum(q1.valueNAOK, q2.valueNAOK, q3.valueNAOK, q4.valueNAOK, q5.valueNAOK, q6.valueNAOK, q7.valueNAOK, q8.valueNAOK, q9.valueNAOK, q10.valueNAOK)}
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: dani1985
The topic has been locked.
- dani1985
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 5 months ago - 9 years 5 months ago #113608
by dani1985
Replied by dani1985 on topic problems scoring the points from the right answers
Your right -> on this page:
manual.limesurvey.org/Assessments/de
there is an example:
LimeSurvey_sample_survey_Assessment.lss
But this example can't be downloaded.
I thought i can use {TOTAL} without the Expression Manager.
The only way is to use the expression manager? -> So is there a little example file?
or is it possible to give a short exmaple of 2 questions (yes or no questions) ->giving points to each answer and than store the result in an 3 hidden question. It would be very nice to have such an example *pls*
Thx!
manual.limesurvey.org/Assessments/de
there is an example:
LimeSurvey_sample_survey_Assessment.lss
But this example can't be downloaded.
I thought i can use {TOTAL} without the Expression Manager.
The only way is to use the expression manager? -> So is there a little example file?
or is it possible to give a short exmaple of 2 questions (yes or no questions) ->giving points to each answer and than store the result in an 3 hidden question. It would be very nice to have such an example *pls*
Thx!
Last edit: 9 years 5 months ago by dani1985.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
9 years 5 months ago #113615
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic problems scoring the points from the right answers
Tpartner already gave you an example as a script. you just need to change "q1", "q2", etc. with your own question codes.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
9 years 5 months ago #113616
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic problems scoring the points from the right answers
And {TOTAL} works only on the endpage (--> See wiki about assessments).
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
9 years 5 months ago #113617
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic problems scoring the points from the right answers
And {TOTAL} works only on the endpage (--> See wiki about assessments).
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- dani1985
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 5 months ago #113618
by dani1985
Replied by dani1985 on topic problems scoring the points from the right answers
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
9 years 5 months ago #113620
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic problems scoring the points from the right answers
This will return the assessment result for question code "Frage1a":
Code:
Frage1a.valueNAOK
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- dani1985
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 5 months ago - 9 years 5 months ago #113635
by dani1985
Replied by dani1985 on topic problems scoring the points from the right answers
Thx for your answer - that helps.
OK. now i tried the following to get a number from this value:
-) Created an 11th hidden question (type equation)
overview:
in detail:
-) Now i have testet the survey - and watched the result in the backend
here comes some strange html code no number
What is missing / wrong?
Thx!
OK. now i tried the following to get a number from this value:
-) Created an 11th hidden question (type equation)
overview:
in detail:
-) Now i have testet the survey - and watched the result in the backend
here comes some strange html code no number
What is missing / wrong?
Thx!
Last edit: 9 years 5 months ago by dani1985.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
9 years 5 months ago #113639
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic problems scoring the points from the right answers
The WYSIWYG editor is trying to make sense of your equation I think. Switch off the WYSIWYG editor (or go to the code view and include Tpartners code then.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- dani1985
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 5 months ago - 9 years 5 months ago #113641
by dani1985
Replied by dani1985 on topic problems scoring the points from the right answers
Yes - that was the problem that made me confused the last two days... THX!!
Now, the last question.
For reviewing the results i'm thinking about to make a 12th hidden question and working
around with the filled variable {points}.
Maybe look like this:
***12th question***
Code: result
Radio Options:
o technician (if point sum >= 8 -> this should be checked by default)
o no technician (if point sum <8 -> this should be checked by default)
Is this possible - or is there an other method to do this?
THX!
Now, the last question.
For reviewing the results i'm thinking about to make a 12th hidden question and working
around with the filled variable {points}.
Maybe look like this:
***12th question***
Code: result
Radio Options:
o technician (if point sum >= 8 -> this should be checked by default)
o no technician (if point sum <8 -> this should be checked by default)
Is this possible - or is there an other method to do this?
THX!
Last edit: 9 years 5 months ago by dani1985. Reason: wrong
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
9 years 5 months ago #113645
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic problems scoring the points from the right answers
Here Dennis posted a solution to a similar question:
www.limesurvey.org/en/community-services...sign?start=10#113123
www.limesurvey.org/en/community-services...sign?start=10#113123
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.