Welcome to the LimeSurvey Community Forum

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

Multichoise question

  • robertofranchi
  • robertofranchi's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #145617 by robertofranchi
Multichoise question was created by robertofranchi
I have need to use a multichoise question where each answer have a different weight. In advanced property I can put a unique weight for all the choise.
Someone have managed this kinds of poblem (answer A =1000, answer B = 500, Answer C = 250, Answer D = 0, etc,)
Thanks a lot for any suggestions
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145620 by tpartner
Replied by tpartner on topic Multichoise question
LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145621 by Joffm
Replied by Joffm on topic Multichoise question
Hi, robertofranchi,
you can use an equation to calculate this

E.g.
{sum(if(Q1_SQ001=="Y",1000,0), if(Q1_SQ002=="Y",500,0), if(Q1_SQ003=="Y",250,0))}

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 3 months ago by Joffm. Reason: Typo
The topic has been locked.
  • robertofranchi
  • robertofranchi's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #145696 by robertofranchi
Replied by robertofranchi on topic Multichoise question
I've 2 different installation
Versione 2.57+161202 and Versione 2.05+ Build 150413
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145697 by tpartner
Replied by tpartner on topic Multichoise question
Joffm's equation will work in both of those.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • robertofranchi
  • robertofranchi's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #146066 by robertofranchi
Replied by robertofranchi on topic Multichoise question
Hi Joffm

I tried to apply the solution proposed but I'm not able to do work it....

I tried to put the equation in different field (see image attached).. Where I can put the regexp code?

Code used.
I have 7 answer and just 3 have a positive value (if not select no value).... I put this code
sum(if(Q001_SQ001==“Y”,333,0), if(Q001_SQ002==“Y”,333,0), if(Q001_SQ005==“Y”,334,0))

Thank in advance for each suggestion
best regards
Attachments:
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146080 by holch
Replied by holch on topic Multichoise question
This doesn't make sense. You can't put this into the relevance equation, this field is only to determine when a question is shown or not (please read about the basics of expression manager in the manual).

The secons screen also doesn't make sense. This is the validation and you are NOT validating the answer of a question. You want to give points. You either do this with assessments (where you can give an assessment value to each value) or use the example of Joff via an equation. You need an equation type question to calculate this value and you can then hide this question from other to see.
So you will need to write this into a separate question of the type "equation". But I seriously recommend to read about the expression manager, because then you will understand better what it can do, where you need to write what, etc.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose