Welcome to the LimeSurvey Community Forum

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

Capturing the randomization order of question groups

  • k_gemenis
  • k_gemenis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 weeks ago #196128 by k_gemenis
Thanks for the quick response! This is exactly what I tried, but didn't work. LSS attached.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 weeks ago #196140 by Joffm
Well,
I can count in greek up to 69,
I can buy fuel,
I can order some drinks, but that's all,
I can read (mostly without understand it).
But that's nearly all.
So, please, only include in your lss export the relevant questions (not 26 groups with 42 questions), and - if possible - in a language that most of us can read.
Therefore you should use your prototype where you test small pieces of code to see whether it works, before you include it in your real survey.


What I see, is:
In BB2 and BB3 you have an equation to set "order".
But where is the question "order"? Your question has the Code "BB1".
How can you imagine that "BB1" is set by an equation, that says "order=1"

So obviously you have to say {BB1=1}

You really should read the manual about equations and Expression Manager/script.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: k_gemenis
The topic has been locked.
  • k_gemenis
  • k_gemenis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 weeks ago #196153 by k_gemenis
That worked. Thanks!
The topic has been locked.
More
3 years 2 months ago #211910 by joca_b
Hello,

Is it possible also to see the order of 3 randomized groups?

Thank you in advance!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #211912 by Joffm
Hi,
You may use the property ".gseq"
See here:
[url] manual.limesurvey.org/ExpressionScript_-...#Access_to_variables [/url]
Qcode.gseq:  the sequential number of the group, starting from 0

Create a question of type "equation" in each of your groups with something like
{Q1_1.gseq}
{Q1_2.gseq}
where Q1_1 is a question in your first group, Q1_2 a question in your second group, ...

Here a prototype
 

File Attachment:

File Name: limesurvey...6842.lss
File Size:20 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, joca_b
The topic has been locked.
More
3 years 2 months ago #211954 by joca_b
It works perfectly.

Thank you very much!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose