Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Display a specific number of random questions from a set of questions.

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104024

  • djven_om
  • djven_om's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi everybody,
I have a question.
Is it possible to display randomly a specific number of questions from a set of question.
For example to display 5 random questions from a set of 10 in an assessment?

thanks in advance
Last Edit: 2 years 10 months ago by djven_om.
The administrator has disabled public write access.

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104067

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
Hi,

You can use :
- Same randomization group name for the 10 question
- EM relevance equation to sum(Q2.relevanceStatus,Q3.relevanceStatus ... Q10.relevanceStatus)<=4 for Q1 (remove Q2 and add Q1 for Q2 etc ..)

See attached survey for an exemple (2 on 4).

File Attachment:

File Name: limesurvey...ween.lss
File Size:15 KB
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
Last Edit: 2 years 10 months ago by DenisChenu.
The administrator has disabled public write access.

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104081

  • djven_om
  • djven_om's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
DenisChenu wrote:
Hi,

You can use :
- Same randomization group name for the 10 question
- EM relevance equation to sum(Q2.relevanceStatus,Q3.relevanceStatus ... Q10.relevanceStatus)<=4 for Q1 (remove Q2 and add Q1 for Q2 etc ..)

See attached survey for an exemple (2 on 4).

File Attachment:

File Name: limesurvey...ween.lss
File Size:15 KB

Hi, when i try to import the survey i get this error message:
Property "Survey.questionindex" is not defined

What am i doing wrong?

Thank you for your time
The administrator has disabled public write access.

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104082

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
It's noty you ... it's me .. and LS 2.05 version.

Upload a new lss file 2.00 compatible
Attachments:
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V, djven_om

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104086

  • djven_om
  • djven_om's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thank you for your time :)
The administrator has disabled public write access.

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104092

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
Great tip Denis!

I have added a sample survey to the docs - manual.limesurvey.org/Expression_Manager..._of_the_questions.29

.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu, Ben_V

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104101

  • MikeConom
  • MikeConom's Avatar
  • Offline
  • Junior Lime
  • Posts: 39
  • Thank you received: 1
  • Karma: 0
Nice Job Denis
The administrator has disabled public write access.

Display a specific number of random questions from a set of questions. 2 years 10 months ago #104150

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
tpartner wrote:
Great tip Denis!

I have added a sample survey to the docs - manual.limesurvey.org/Expression_Manager..._of_the_questions.29

.
Thanks !
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.
Time to create page: 0.234 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form