Welcome to the LimeSurvey Community Forum

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

Multiple dropdowns must add to 100?

  • PaulMRFGR
  • PaulMRFGR's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #209128 by PaulMRFGR
Multiple dropdowns must add to 100? was created by PaulMRFGR
I have a survey question which contains multiple numerical dropdowns (using the array question style with dropdown design), but I want to ensure that respondent's answers add up to 100.

It basically asks participants to state what percentage of their time they use each of the listed devices - so it will need to add up to 100.

I've done this before using a free numerical text with the following equation: sum(self.NAOK)==100

Is there a similar equation I can use in this instance where respondents give a closed answer through dropdowns rather than free text?

I've attached the survey question!

File Attachment:

File Name: limesurvey...8755.lss
File Size:16 KB


Thank you.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209137 by tpartner
Replied by tpartner on topic Multiple dropdowns must add to 100?
Assign numeric answer codes.


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
3 years 4 months ago #209138 by Joffm
Replied by Joffm on topic Multiple dropdowns must add to 100?
Hi, did you see what you are doing?


You sum up ("A2","A4","A2").

Tony told you what to do.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209149 by DenisChenu
Replied by DenisChenu on topic Multiple dropdowns must add to 100?
You can use sum(self.shown) too.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: tpartner
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose