Welcome, Guest
Username: Password: Remember me

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

controlling that one numerical answer is the sum of two other numerical answers 6 months 3 weeks ago #105717

  • Heidi123
  • Heidi123's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
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 administrator has disabled public write access.

controlling that one numerical answer is the sum of two other numerical answers 6 months 3 weeks ago #105727

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6334
  • Thank you received: 818
  • Karma: 243
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.
Last Edit: 6 months 3 weeks ago by DenisChenu.
The administrator has disabled public write access.

controlling that one numerical answer is the sum of two other numerical answers 6 months 3 weeks ago #105732

  • Heidi123
  • Heidi123's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Thank you, I think I found a solution :)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.102 seconds
Donation Image