Show unselected subquestions

Mehr
4 Monate 1 Woche her - 4 Monate 1 Woche her #178920 von develnick
COM_KUNENA_MESSAGE_CREATED_NEW
Hello, I have a long multiple-choice question as follow:

Reference:
[✔] the user choose a document


Question Q: Choose the avaiable documents.
  • 01: Document 1
  • 02: Document 2
  • 03: Document 3 [✔]
  • ...
  • q_99: Document 99


What is the code to show unselected documents? The expected behavior is:

Thank you for your selection. You didn't select those documents: Document 1, Document 2, Document 99


I tried to use this code:
{if(Q_0N == 'Y',"","{Q_0N.question}")}

but the result is that:

Thank you for your selection. You didn't select those documents: {Q_01.question}, {Q_02.question}, {Q_0N.question}



This approach works only if I put the question text manually:
{if(Q_0N == 'Y',"","You didn't select those documents: document N")}

- Nick
Last edit: 4 Monate 1 Woche her by develnick.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
4 Monate 1 Woche her #178921 von holch
COM_KUNENA_MESSAGE_REPLIED_NEW
You probably will have to check the subquestions one by one. I don't think that there is an array with unchecked subquestions.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 1 Woche her #178925 von develnick
COM_KUNENA_MESSAGE_REPLIED_NEW
Ok I understand; thanks for your answer. However do you know what is the code to show unchecked subquestion? Because this one:
{if(Q_0N == 'Y',"","{Q_0N.question}")}

does not work.

If I run this code, it ends with showing {Q_0N.question} including the {} parenthesis.
Thanks for your time again!

- Nick

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 1 Woche her #178929 von tpartner
COM_KUNENA_MESSAGE_REPLIED_NEW
You have misplaced parenthesis and quotes.

{if(Q_0N == 'Y', "", Q_0N.question)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 1 Woche her #178931 von holch
COM_KUNENA_MESSAGE_REPLIED_NEW
What tpartner says!

What is put between " is considered a string, so Expression Manager did the right thing and wrote exactly that.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 1 Woche her #178946 von develnick
COM_KUNENA_MESSAGE_REPLIED_NEW
Thank you very much. That solved my issue

- Nick

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha