Welcome to the LimeSurvey Community Forum

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

only show next question if Sum of Q3, 4 and 5 equals the number entered in Q2

More
20 hours 37 minutes ago #273689 by vthiel
Please help us help you and fill where relevant:
Your LimeSurvey version: Online Version, Free
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi, 
so we're tryalling lime survey to do an annual monitoring for about 15 orgs. It involves breaking down a total sum of incidents into different categories. Lets say they collect flowers. they are either red, blue or yellow, the answers are fixed. 
For example, in total, an organisation collected 50 flowers. 20 were red, 20 were blue, and 10 were yellow. After this section, they are asked about further markers, like size, petal shape and so on. Often, people get confused and the subcategories do not add up to the total number. I therefore want to build in either a warning/error message that tells them they got mixed up, and make sure they can only progress to the next set of questions once the numbers are added up.

Q2: How many flowers did you collect. - A 50
Q3 How many of these were red - 18
Q4: How many of these were blue - 17
Q5 How many of these were yellow- 10

ERROR: sum of flowers do not add up to total sum of flowers. 

Hope this makes sense.
What syntax should I enter in the expression builder?
Bear in mind we only use the web version, we're too small to host a server and only run the survey once a year. 
Many thanks in advance! 
 

Please Log in to join the conversation.

More
20 hours 23 minutes ago #273691 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose