- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Randomly select 3 out of 8
- aghjoyanarpine
- Topic Author
- Offline
- New Member
Less
More
2 years 5 months ago #222290
by aghjoyanarpine
Randomly select 3 out of 8 was created by aghjoyanarpine
I have got 8 group of questions on 8 different ads, so I have a condition to show the group, if the respondent saw the ad. In case the seen ads are more than 3, I want to show random 3, not more (so maybe the respondent saw all of them, I do not want to overload the respondent).
I know how to randomly show 3 groups, the problem is that maybe the respondent did not see all the 3
Is there any solution to this?
Thank you!
I know how to randomly show 3 groups, the problem is that maybe the respondent did not see all the 3
Is there any solution to this?
Thank you!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13693
- Thank you received: 2501
2 years 5 months ago #222298
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Randomly select 3 out of 8
Maybe, just the idea.
Set the 8 groups in same ransiomization group name
Add in each group SeeAdd1, SeeAdd2 etc … question : equation with 1
Each group have condition "SeeAdd#.NAOK > 0 or sum(SeeAdd1.NAOK,SeeAdd2.NAOK …) <= 3" (replace # by the number of group.
Set the 8 groups in same ransiomization group name
Add in each group SeeAdd1, SeeAdd2 etc … question : equation with 1
Each group have condition "SeeAdd#.NAOK > 0 or sum(SeeAdd1.NAOK,SeeAdd2.NAOK …) <= 3" (replace # by the number of group.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
2 years 5 months ago #222302
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Randomly select 3 out of 8
My business partner Jan recently solved this:
toolsforresearch.com/limesurvey-randomly...of-y-question-groups
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13693
- Thank you received: 2501
2 years 5 months ago #222319
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Randomly select 3 out of 8
I use a OR condition ,needed when there are index and move previous.
Needed with sum(SeeAdd1.NAOK,SeeAdd2.NAOK …) <= 3
Needed with sum(SeeAdd1.NAOK,SeeAdd2.NAOK …) <= 3
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- aghjoyanarpine
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 5 months ago #222364
by aghjoyanarpine
Replied by aghjoyanarpine on topic Randomly select 3 out of 8
Dear Denis!
Thank you for the reply. Honestly, I did not get your solution, I am a bit new here, and have problems in quick understanding Can you, please, describe the solution with a little more details?
Thank you for the reply. Honestly, I did not get your solution, I am a bit new here, and have problems in quick understanding Can you, please, describe the solution with a little more details?
The topic has been locked.
- aghjoyanarpine
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 5 months ago #222365
by aghjoyanarpine
Replied by aghjoyanarpine on topic Randomly select 3 out of 8
Thank you for this - it will work only if there are not any other conditions beforehand. I have a filtering condition, so if the random chosen 3 is not seen by the respondent, we will have empty list.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13018
- Thank you received: 4003
2 years 5 months ago #222373
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Randomly select 3 out of 8
Hi,
therfore it's important to provide all informations.
And the best:
Send the survey as lss export.
Joffm
therfore it's important to provide all informations.
And the best:
Send the survey as lss export.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- aghjoyanarpine
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 5 months ago #222407
by aghjoyanarpine
Replied by aghjoyanarpine on topic Randomly select 3 out of 8
Thank you!
So basically, I have got questions 100-800 (8 question) blocks, 2 questions each, in the first question, I am asking whether they saw the ads.
If they saw the add, I have another 8 groups A354-A362 where there are details on the ad, each block corresponds to a specific ad - 100 is A354, 200 is 355 etc.
All I want is to ask 3 groups from A354-A362, and the most important part is that the respondent should have seen these ads
So basically, I have got questions 100-800 (8 question) blocks, 2 questions each, in the first question, I am asking whether they saw the ads.
If they saw the add, I have another 8 groups A354-A362 where there are details on the ad, each block corresponds to a specific ad - 100 is A354, 200 is 355 etc.
All I want is to ask 3 groups from A354-A362, and the most important part is that the respondent should have seen these ads
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13018
- Thank you received: 4003
2 years 5 months ago #222419
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Randomly select 3 out of 8
Hi,
I saw that you obviously did not import the survey Tony provided in the @Tammo's link.
[url] www.limesurvey.org/forum/can-i-do-this-w...estion-groups#145950 [/url]
You really should read the manual to understand the basics of Expression Manager,
[url] manual.limesurvey.org/ExpressionScript_-_Presentation/en [/url]
and study the sample surveys provided.
[url] manual.limesurvey.org/ExpressionScript_sample_surveys [/url]
Here two sample surveys.
1. with the property "relevanceStatus"
2. Denis' solution
Joffm
I saw that you obviously did not import the survey Tony provided in the @Tammo's link.
[url] www.limesurvey.org/forum/can-i-do-this-w...estion-groups#145950 [/url]
You really should read the manual to understand the basics of Expression Manager,
[url] manual.limesurvey.org/ExpressionScript_-_Presentation/en [/url]
and study the sample surveys provided.
[url] manual.limesurvey.org/ExpressionScript_sample_surveys [/url]
Here two sample surveys.
1. with the property "relevanceStatus"
2. Denis' solution
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, aghjoyanarpine
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13693
- Thank you received: 2501
2 years 5 months ago #222420
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Randomly select 3 out of 8
Warni ng with my solution to show 3 group , you need to test with Leser and Egual 2./
Reason with CO3 at 3rd step and no random for detail
Before testing : sum(eqCO1.NAOK,eqCO2.NAOK,,eqCO3.NAOK, …) == 2
When testing eqCO3 is set to 1
After testing : sum(eqCO1.NAOK,eqCO2.NAOK,,eqCO3.NAOK, …) == 3
If you set Leser and egual to 4 : eqCO4 was shown.
Reason with CO3 at 3rd step and no random for detail
Before testing : sum(eqCO1.NAOK,eqCO2.NAOK,,eqCO3.NAOK, …) == 2
When testing eqCO3 is set to 1
After testing : sum(eqCO1.NAOK,eqCO2.NAOK,,eqCO3.NAOK, …) == 3
If you set Leser and egual to 4 : eqCO4 was shown.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: aghjoyanarpine
The topic has been locked.
- aghjoyanarpine
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 5 months ago #222551
by aghjoyanarpine
Replied by aghjoyanarpine on topic Randomly select 3 out of 8
Dear DenisChenu,
Thank you for your help!
Arpine
Thank you for your help!
Arpine
The topic has been locked.
- aghjoyanarpine
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
2 years 5 months ago #222552
by aghjoyanarpine
Replied by aghjoyanarpine on topic Randomly select 3 out of 8
Dear Joffm,
Thanks for the uploads, they were extremely helpful!
Best,
Arpine
Thanks for the uploads, they were extremely helpful!
Best,
Arpine
The topic has been locked.