Check out the LimeSurvey source code on GitHub!

how to show the answer of multiple choice question?

More
2 years 10 months ago #107621 by iscar
i have a multiple choice question q1. with 3 subquestion sq001,sq002,sq003.
suppose participant select sq001 and sq003.
i would creat next question q2 with text display type:
in last question, you select sq001,sq003.
how to write the EM in q2? i tried q1.shown but it's not correct.

Please Log in to join the conversation.

More
2 years 10 months ago #107679 by first
Try {q1_sq001.shown}
{q1_sq003.shown}

Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."

Please Log in to join the conversation.

More
2 years 10 months ago #107713 by iscar
the problem is we don't know which option will be selected in multiple choice question.
i am not sure if we can use q1.selected.shown?

Please Log in to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #107724 by tpartner
You can use the "list" function - manual.limesurvey.org/Expression_Manager#Implemented_Functions

In the last question you selected: {list(q1_sq001.shown, q1_sq002.shown, q1_sq003.shown, q1_sq004.shown)}

.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 2 years 9 months ago by tpartner.
The following user(s) said Thank You: Qsgt

Please Log in to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #107741 by ekoslav
And how do you go about using assessment when there is 10 options available and you have 4 correct ones?

The question is "Select all that apply" and if 4 correct ones are selected, positive point is awarded in assessment ?

Right now, the assessment is calculated as: {sum(Q1.value+Q2.value+Q3.value)} for List (radio) questions, and I would like to use multiple option questions as well, if possible.
Last Edit: 2 years 9 months ago by ekoslav. Reason: additional information

Please Log in to join the conversation.

More
2 years 9 months ago #107743 by tpartner
I don't see how that relates to this topic. Please open a new one if you have an unrelated question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form