Check out the LimeSurvey source code on GitHub!

Count responses in array question and take different actions according to total

More
5 years 4 months ago #64953 by paulbocij
I'm sure this can be done but I don't know how! I've looked through the forums but can't find anything similar.

I have an array question that uses "Yes" and "No" options for maybe a dozen sub-questions. When the answer is submitted, I need to add up how many "Yes" answers were given by the user. Depending on how many "Yes" answers were given, I need to take one of several actions:

0 (zero) items - go to an end page
1 item - ask a further question
2 or more items - move to the next part of the survey, skipping the further question

Can anyone give me some guidance on how to achieve this?

Paul

Please Log in to join the conversation.

More
5 years 4 months ago #65174 by romancretnik
Hi, I'm looking for a similar solution. Any luck finding it?

Please Log in to join the conversation.

More
5 years 4 months ago #65189 by TMSWhite
For version 1.91+, you'll need fancy JavaScript to do this.

For version 1.92, this is easy. See Expression Manager for more details.

Please Log in to join the conversation.

More
5 years 4 months ago #65194 by romancretnik
And when can we expect 1.92?

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form