Expression Manager summary with placeholders: how to only show specific answers

Mehr
4 Jahre 2 Monate her #116441 von eleren
COM_KUNENA_MESSAGE_CREATED_NEW
Case: array question with 5-step label from "don't agree at all" to "completely agree" and, say, 6 subquestions.
I found out how to display the answers in a "text display" question type.
But how can I display only the "don't agree at all" answers?
And how can I filter out the "non applicable" answers?

manual.limesurvey.org/Expression_Manager...e_using_placeholders

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
4 Jahre 2 Monate her #116443 von holch
COM_KUNENA_MESSAGE_REPLIED_NEW
Well, you will need to write an expression that first checks the value of the answer (e.g. something like "if answer1 == 1 then write "blablabla".

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 Jahre 2 Monate her #116445 von eleren
COM_KUNENA_MESSAGE_REPLIED_NEW
OK, I understand, but I can't figure out the right syntax:

I tried
{if(Q1_sq001.shown=='don't agree at all')}{Q1_sq001.question}: {Q1_sq001.shown}
but his gives me a syntax error.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Jahre 2 Monate her #116448 von holch
COM_KUNENA_MESSAGE_REPLIED_NEW
Of course, because it is not a valid EM syntax. Have a look at the examples in the manual and I think you'll figure it out.

You need to understand how the "if" loop in EM is built. Because you say "if something happens." Full stop. You closed the expression. You need to give it something to work with within {}.

Have a look at the examples here using if:

manual.limesurvey.org/Expression_Manager

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
2 Monate 1 Woche her #179089 von Mazi
COM_KUNENA_MESSAGE_REPLIED_NEW

eleren schrieb: OK, I understand, but I can't figure out the right syntax:

I tried
{if(Q1_sq001.shown=='don't agree at all')}{Q1_sq001.question}: {Q1_sq001.shown}
but his gives me a syntax error.


You are Also using single quote around the to be checked text but the to be checked text contains a single quote as well. So that won't work because the quote within the text closes the expression.
In addition, the whole expression is a little wrong.

It should be like this:
{if(Q1_sq001.shown=="don't agree at all", Q1_sq001.question, Q1_sq001.shown)}

Some more notes:
1. Subquestion codes are usually like "SQ001" and not "sq001".

2. Your expression shows the question text if the answer is "don't agree..." and if not it shows the answer texts. Not sure if this is intended. Possible solution to show question text + answer text if true and nothing if false:
{if(Q1_sq001.shown=="don't agree at all", join(Q1_sq001.question, ": ", Q1_sq001.shown),"")}

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Woche her #179104 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
Whuy using .shown ? You choice "Don't agree at all" have a code, use the code ( {if(Q1_sq001.NAOK=="NOAGR", join(Q1_sq001.question, ": ", Q1_sq001.shown),"")}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

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