check if a list of questions in the group are answered

  • tassoman
  • tassoman's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • net addicted geek administering LS
More
1 month 4 weeks ago #215198 by tassoman
Hello there, I'm trying to check if the participant has answered some questions in the group. Questions have sub-questions. Writing
{count(that.QFin1.NAOK)>0}
is just triggered when any subquestion gets an answer.
I need to check all the answers are collected, in a list of questions. So I wrote
{countif(4,that.QFin1.NAOK,that.QFin2.NAOK,that.QFin3.NAOK, that.QFin4.NAOK)>0}
but is always returning 0.
Maybe because the survey isn't activated yet, and isn't collecting answers?

«All your survey answers are belong to us »

Please Log in to join the conversation.

More
1 month 4 weeks ago - 1 month 4 weeks ago #215200 by tpartner
{count(that.QFin1.NAOK) == 4}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 month 4 weeks ago by tpartner.
The following user(s) said Thank You: DenisChenu, tassoman

Please Log in to join the conversation.

  • tassoman
  • tassoman's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • net addicted geek administering LS
More
1 month 3 weeks ago #215308 by tassoman
Thank you Tony for the advice, I wrote something like this:
{if(count(that.QFin1.NAOK) == 2 && count(that.QFin2.NAOK) == 2, 'OK','NO')}

And works flawless! Easy!

«All your survey answers are belong to us »

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now