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
  • dani1985's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113599 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!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113604 by tpartner
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:
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
  • dani1985's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago - 9 years 4 months ago #113608 by dani1985
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!
Last edit: 9 years 4 months ago by dani1985.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113615 by holch
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113616 by holch
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113617 by holch
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
  • dani1985's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #113618 by dani1985
ok. lets try slowly.

1.) I have the question here:


2.) To view the question code


3.) Now i can get the result (0 or 1) by which code?

I think than it would be clearer for me...

THX!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113620 by tpartner
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
  • dani1985's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago - 9 years 4 months ago #113635 by dani1985
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!
Last edit: 9 years 4 months ago by dani1985.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113639 by holch
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
  • dani1985's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago - 9 years 4 months ago #113641 by dani1985
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!
Last edit: 9 years 4 months ago by dani1985. Reason: wrong
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #113645 by holch
Here Dennis posted a solution to a similar question:

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.

Lime-years ahead

Online-surveys for every purse and purpose