Show unselected subquestions

Plus d'informations
il y a 1 semaine 4 jours - il y a 1 semaine 4 jours #178920 par develnick
develnick a créé le sujet : Show unselected subquestions
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
Dernière édition: il y a 1 semaine 4 jours par develnick.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #178921 par holch
holch a répondu au sujet : Show unselected subquestions
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

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #178925 par develnick
develnick a répondu au sujet : Show unselected subquestions
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

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #178929 par tpartner
tpartner a répondu au sujet : Show unselected subquestions
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.
Les utilisateur(s) suivant ont remercié: DenisChenu

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 4 jours #178931 par holch
holch a répondu au sujet : Show unselected subquestions
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

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 semaine 3 jours #178946 par develnick
develnick a répondu au sujet : Show unselected subquestions
Thank you very much. That solved my issue

- Nick

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!