- Posts: 36
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multichoise question
- robertofranchi
- Topic Author
- Offline
- Junior Member
Less
More
7 years 4 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
7 years 4 months ago #145620
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 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
7 years 4 months ago - 7 years 4 months ago #145621
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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 4 months ago by Joffm. Reason: Typo
The topic has been locked.
- robertofranchi
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 0
7 years 4 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
Versione 2.57+161202 and Versione 2.05+ Build 150413
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
7 years 4 months ago #145697
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 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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 0
7 years 4 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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
7 years 4 months ago #146080
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 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.
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.