Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Random question order (x out of y) with working conditions?

  • locotay
  • locotay's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago - 7 years 4 months ago #144028 by locotay
aye folks! (:

Edit: running on Version 2.52+160920 (whatever the last part means)

As discussed via IRC earlier I do have the following problem.
My client wants to build some quizzes with limesurvey. If possible there should be a question-pool (f.e. 50 questions) from wich 25 questions are displayed at random. After each question there should be a page where the user is told if the given answer was correct or not (with the correct answer mentioned if the answer was wrong). Therefore i need 2 "answer"-questions with corresponding conditions for every "question"-question.

I tried using this workaround for the first part. The only problem is that conditions don't seem to work with it.

The question: Is it possible to realize something like this without further js- or phpsnippets?
The people who should be using this in the end have no idea how coding works.

Hopefully this is understandable – I have no idea if this is a proper english text tho.. :D
Last edit: 7 years 4 months ago by locotay.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago - 7 years 4 months ago #144034 by Joffm
Hi, locotay,
please refer to this thread
www.limesurvey.org/de/foren/can-i-do-thi...-questions-out-of-15

and Tony's answer

It looks like the relevanceStatus is only generated after page load so my solution would be as follows...

1) Run the survey in group-by-group mode

2) Place each question in a separate group

3) In each group, precede the visible question with a hidden equation question (equation1, equation2...) containing something like this (varies by group):

{sum(Q2.relevanceStatus, Q3.relevanceStatus, Q4.relevanceStatus, Q5.relevanceStatus)}

4) Place relevance on the visible questions, referencing their corresponding equation questions something like this:

equation1 LT 3


I added a bit to his example to have your two result pages included.
Please see attached sample.
The sample contains of five groups - each one with one question.
In the first group I added the "result" pages.
In this survey three out of these five questions will be asked.

So you will have to expand it to 25 out of 50. and adapt the equations. At last "equation1 LT 25"

Best regards
Joffm

BTW: What is the meaning of "160920"? It's included in the version number.
So you could think about a date.
And indeed, it is: 2016, september (=09), 20th.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 4 months ago by Joffm. Reason: Ergänzung
The topic has been locked.
  • locotay
  • locotay's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago - 7 years 4 months ago #144058 by locotay
Hey there!

This is actually a really nice thing to do – it may come in handy at some point.
[strike]The only problem right now is that it shows you if you answered right or not immediately. If someone picks the wrong answer he could just switch through the other options until he get's the right one and then go to the next question.
Is there a way toshow the results after hitting the next-button?[/strike]


Edit:
Nevermind. I should have tried putting the survey in question by question mode . Working like a charm.
Let's see if everyone in the office understand how this works.. :D

Thank you very much!
Last edit: 7 years 4 months ago by locotay.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose