Welcome to the LimeSurvey Community Forum

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

Using an equation on a Multiple Short Text question type

  • Archer101
  • Archer101's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188634 by Archer101
Hello Everyone,


I am using a Multiple Short Text question text with the input to be numbers only.


Is there an easy way to add an equation to let me know the total 2 out of 6 sub-questions to see if the respondents qualifies?


Thank you,

Laurie
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago - 4 years 7 months ago #188635 by Joffm
Hi, Laurie,
though you didn't provide much information:
Create your quesion of type equation with something like
{Q1_SQ001.NAOK+Q1_SQ004.NAOK}

If you want to set a quota with limit 0 to screenout this participant, you could set a question of type single and two answer options (1,2)
with {Q2=if(Q1_SQ001.NAOK+Q1_SQ004.NAOK<50,1,2)}

Now you can set the quota to Q2==1, meaning: screenout if the sum is less than 50.

Everything only examples.

Provide more details, the solution is easy.

Joffm

And if you have only numerical input why not a "multiple numerical input"

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 7 months ago by Joffm.
The topic has been locked.
  • Archer101
  • Archer101's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188653 by Archer101
Thank you for the information. I will give it a try.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188671 by DenisChenu
Warning with + system.

In JS : + is can be concatenate string (and not sum). The best is to use sum(Q1_SQ001.NAOK,Q1_SQ004.NAOK) in place of Q1_SQ001.NAOK+Q1_SQ004.NAOK :)

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

Lime-years ahead

Online-surveys for every purse and purpose