- Posts: 7
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
4 years 1 month ago #196128
by k_gemenis
Replied by k_gemenis on topic Capturing the randomization order of question groups
Thanks for the quick response! This is exactly what I tried, but didn't work. LSS attached.
Attachments:
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12975
- Thank you received: 3991
4 years 1 month ago #196140
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Capturing the randomization order of question groups
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
4 years 4 weeks ago #196153
by k_gemenis
Replied by k_gemenis on topic Capturing the randomization order of question groups
That worked. Thanks!
The topic has been locked.
- joca_b
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
3 years 2 months ago #211910
by joca_b
Replied by joca_b on topic Capturing the randomization order of question groups
Hello,
Is it possible also to see the order of 3 randomized groups?
Thank you in advance!
Is it possible also to see the order of 3 randomized groups?
Thank you in advance!
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12975
- Thank you received: 3991
3 years 2 months ago #211912
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Capturing the randomization order of question groups
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
Joffm
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
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.
- joca_b
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
3 years 2 months ago #211954
by joca_b
Replied by joca_b on topic Capturing the randomization order of question groups
It works perfectly.
Thank you very much!
Thank you very much!
The topic has been locked.