Welcome to the LimeSurvey Community Forum

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

Point Buy System

  • borgstein
  • borgstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #210254 by borgstein
Point Buy System was created by borgstein
Hi Everyone!

I'm trying to design a question group in which participants have 3 answer options for 7 attributes. The answer options are Low, Medium, and High. I have given them a weighting of 1, 3, and 5 points respectively. I would like participants to be able to select options for the attributes totaling 15 points across the whole question group, similar to a point-buy system used in various games. 

Is this possible in LimeSurvey?

Thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #210255 by tpartner
Replied by tpartner on topic Point Buy System
Yes, use an array type question with question validation:
 
 
Code:
sum(self) == 15

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: borgstein
The topic has been locked.
  • borgstein
  • borgstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #210260 by borgstein
Replied by borgstein on topic Point Buy System
Thanks!

Sorry if this is obvious, I'm new to LS.
But, when I said I had set the options as 1, 3, and 5, I was referring to my planned question rather than something I had actually done in LS. Is this also easy to do with Array types?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #210262 by Joffm
Replied by Joffm on topic Point Buy System
Yes, it is.
If you have the answer option coded 1, 3, 5.
Just try and if there are more questions please show us by providing a lss export, so we see better if there are some small mistakes on your side.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • borgstein
  • borgstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #210267 by borgstein
Replied by borgstein on topic Point Buy System
Thank you that's worked perfectly!

Just a quick question that might help with ease of use for participants, is it possible to include a live tracker for how many 'points' they have used/have remaining or is this something I'd need to add with javascript?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #210268 by Joffm
Replied by Joffm on topic Point Buy System
No, you can do this by Expression Manager.
Something like
You used {sum(self)} points, there are still {15-sum(self)} points remaining.

With a little bit of css (see the screenshot)
And read the manual about Exprfession Manager.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • borgstein
  • borgstein's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #210269 by borgstein
Replied by borgstein on topic Point Buy System
Again, that's immediately worked. Thanks so much for the help
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose