Welcome, Guest
Username: Password: Remember me

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. 10 months 23 minutes 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: 10 months 11 minutes ago by djven_om.
The administrator has disabled public write access.

Display a specific number of random questions from a set of questions. 9 months 4 weeks ago #104067

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
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_survey_randomBetween.lss
File Size: 15 KB
Last Edit: 9 months 4 weeks ago by DenisChenu.
The administrator has disabled public write access.

Display a specific number of random questions from a set of questions. 9 months 4 weeks 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_survey_randomBetween.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. 9 months 4 weeks ago #104082

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
It's noty you ... it's me .. and LS 2.05 version.

Upload a new lss file 2.00 compatible
Attachments:
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. 9 months 4 weeks 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. 9 months 4 weeks ago #104092

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4360
  • Thank you received: 827
  • Karma: 381
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
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. 9 months 4 weeks 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. 9 months 3 weeks ago #104150

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 868
  • Karma: 257
tpartner wrote:
Great tip Denis!

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

.
Thanks !
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.115 seconds
Donation Image