Welcome to the LimeSurvey Community Forum

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

Multiple choice and assessment value

  • lorenz1974
  • lorenz1974's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #122632 by lorenz1974
Multiple choice and assessment value was created by lorenz1974
Hi all,

I'm trying to solve a matter but I'm not able. Probably the answer is very simple but I'm a LimeSurvey newbies.
I have a 5 items multiple choice and I need to give an assesment value to that question if two specific answers of five are flagged.
I tryed many different approaches but {ASSESSMENT_CURRENT_TOTAL} is always 0.

Question is Q1
Subquestions s1, s2, s3, s4, s5
s1 gives 1 point
s2 gives 1 point
s3,s4,s5 give zero point

I tryed :
  • sum(if(Q1_s1=="Y",1,0),if(Q1_s2=="Y",1,0))
  • sum(Q1_s1,Q1_s2)
  • count (Q1_s1.NAOK,Q1_s2.NAOK)
  • sum(!is_empty(Q1_s1.NAOK),!is_empty(Q1_s1.NAOK))
  • ...
but nothing!

Could anyone help me?

Thank you very much!

L
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 8 months ago #122634 by tpartner
Replied by tpartner on topic Multiple choice and assessment value
How did you apply different assessment values to multiple-choice sub-questions?

Without using assessments, you should be able to use this equation:
Code:
{sum(Q1_s1.NAOK == 'Y', Q1_s2.NAOK == 'Y')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • lorenz1974
  • lorenz1974's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #122636 by lorenz1974
Replied by lorenz1974 on topic Multiple choice and assessment value
Hi Tpartner,

I did it, but it seems not to work. I have already tryed your solotion.

I have enabled the assessment mode, I have placed the formula {sum(D_b21.NAOK == 'Y', D_d21.NAOK == 'Y')} in the "Assessment value" field of the single question in the survey, but nothing, {ASSESSMENT_CURRENT_TOTAL}, {TOTAL} and {PERC} are always 0, if I consider them globally or for the single group.

You have my survey TEST in attach. Could you give a look?

Thank you very much!

L
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 8 months ago - 8 years 8 months ago #122637 by tpartner
Replied by tpartner on topic Multiple choice and assessment value
In a multiple-choice type question, you cannot use an equation for the assessment value. It must be numeric and that value will be added to the assessment total for EVERY sub-question that is checked.

You will need to use Expression Manager and an equation similar to the one I gave to display variable messages depending on what is checked in the question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 8 months ago by tpartner.
The topic has been locked.
  • lorenz1974
  • lorenz1974's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #122638 by lorenz1974
Replied by lorenz1974 on topic Multiple choice and assessment value
Sorry Tpartner but I don't understand what you mean, technically speaking.
I don't need to display variable messages during the survey even if I'm able to do that using your formula.
I need to show at the end of survey an assessment with 4 different messages based on the score of the survey which in turn is based also on more multiple questions choices.
Could you give me some tips to do that?
Thanks you!!

L
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 8 months ago #122644 by tpartner
Replied by tpartner on topic Multiple choice and assessment value
You can use Expression Manager to display variable text anywhere in the survey including in the End Message. I think you will find it far more flexible than assessments.

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: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose