Welcome to the LimeSurvey Community Forum

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

controlling that one numerical answer is the sum of two other numerical answers

  • Heidi123
  • Heidi123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #105717 by Heidi123
Hello,

is it possible that lime survey controlls that two given numerical answers are in sum the same as one previous given numerical answer?
Specifically I want to ask, how many people took part in something, how many of them were men and how many women. Definitely all three numbers shall be requested. But if someone answers e.g. 60 in total, 30 women and 20 men, I want a warning to appear or the survey not go on, until the answers got corrected.
Can I do this somehow? It would be grat, if you could help? :)

________
deutsch:
Hallo,

ist es möglich, dass LimeSurvey kontrolliert, dass die Summe zweier numerische Antworten einer zuvor gegebenen numerischen Antwort entspricht?
Konkret geht es darum zu fragen, wie viele Personen an etwas teilgenommen haben, wie viele davon Männer und wie viele davon Frauen waren. Es sollen unbedingt alle drei Anzahlen abgefragt werden. Gibt man bei gesamt allerdings z.b. 60, bei Frauen 30 und bei Männer 20 ein, soll eine Warnung erscheinen bzw. der Fragebogen nicht weitergehen, bis die Angaben korrigiert wurden.
Kann ich das irgendwie erreichen? Es wäre toll, wenn ihr helfen könntet? :)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago - 10 years 1 month ago #105727 by DenisChenu
Hi,

Expression manager : manual.limesurvey.org/Expression_Manager

sum(Q1,Q2,Q3)==Q4

You can use {Q4} in manual.limesurvey.org/Question_type_-_Mu...8equals_num_value.29 too . I think it's what you want.

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.
Last edit: 10 years 1 month ago by DenisChenu.
The topic has been locked.
  • Heidi123
  • Heidi123's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #105732 by Heidi123
Thank you, I think I found a solution :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose