Welcome, Guest
Username: Password: Remember me

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

Count responses in array question and take different actions according to total 3 years 3 months ago #64953

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

Re: Count responses in array question and take different actions according to total 3 years 2 months ago #65174

Hi, I'm looking for a similar solution. Any luck finding it?
The administrator has disabled public write access.

Re: Count responses in array question and take different actions according to total 3 years 2 months ago #65189

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
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.
The administrator has disabled public write access.

Re: Count responses in array question and take different actions according to total 3 years 2 months ago #65194

And when can we expect 1.92?
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.112 seconds
Donation Image