- Posts: 1
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Assign a distribution percentage to randomly displayed groups
- Orélie
- Topic Author
- Offline
- New Member
Less
More
1 week 3 days ago - 1 week 3 days ago #261051
by Orélie
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud Version 6.5.4
Own server or LimeSurvey hosting: Limesurvey hosting
Survey theme/template: Fruity 23
==================
Hello,
I made a survey with 3 randomly displayed groups (see attached lss file).
I'd like to display the 1st group to 10% of the participants, the 2nd group and the 3rd groups to 45% of the participants.
Does anyone have the correct syntax?
Thanks a lot!
Assign a distribution percentage to randomly displayed groups was created by Orélie
Attachment not found
Your LimeSurvey version: LimeSurvey Cloud Version 6.5.4
Own server or LimeSurvey hosting: Limesurvey hosting
Survey theme/template: Fruity 23
==================
Hello,
I made a survey with 3 randomly displayed groups (see attached lss file).
I'd like to display the 1st group to 10% of the participants, the 2nd group and the 3rd groups to 45% of the participants.
Does anyone have the correct syntax?
Thanks a lot!
Last edit: 1 week 3 days ago by Orélie.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12996
- Thank you received: 3999
1 week 3 days ago - 1 week 3 days ago #261052
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Assign a distribution percentage to randomly displayed groups
Hi,
create a random number (randnum) from 1-20
Display group 1, if randnum<3
Display group 2, if randnum>2 and randnum<12
Display group 3, if randnum>11
Joffm
And do not copy/paste images.
As you see in the source code of the question these images are base64 coded.
Like this
No surprise that this small survey takes 854 kB.
Images are linked.
Use the button
and follow the wizard
create a random number (randnum) from 1-20
Display group 1, if randnum<3
Display group 2, if randnum>2 and randnum<12
Display group 3, if randnum>11
Joffm
And do not copy/paste images.
As you see in the source code of the question these images are base64 coded.
Like this
Code:
<p>De klimaattransitie zal in principe inhouden dat fossiele brandstoffen duurder worden. Dit is bijvoorbeeld het vereiste verloop van de uitstoot in de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Z+imf3y5xSTWfsC6ay0rpuce5/jYbnI2hsoR+au/e/wvr17sDNhKDrWDLy8tj/vSaQy7e492eXMeYZ2RBD22s8l1FdW63pMedKn4+Ka5a3z5ycmTXlDJWvPLit9XvUzFDG5z86DIdhdZj1Z+s+7qGw/vyt7D7DS7srjmWRfU17306OYJMGe0T7z3P110nkqK87ZuPPEbtv2FtltP+ddjvrhJtB/5N1Osuvtztz3INB+8m6PwckRk8UrdsHgpSG2v7WRFJOlrWNandELB2dkn4pHOtcOnLfZORiWx/ew1eM/Qz3rA0YxtDz7fkxOyBmB3JgwGd1PahXIw1cOd/WbaO8RQsQCEpNCiIjjFJPHXvl6yPOoMpePxNWtG6FRo6Z4qt94rFo0HX2fvBOdG/vjmrfDrX0+RsLGwOtl4qRBuPOq0/1pG6HjCVfh3R/GYovzHTVtLq48qz2aNGmCky98FWsdL44JEwfj5V634qjD6qBmzZqoWaseTrroNrz95a9IznC/+e/D3BG/4On7r8MRDf1prfSNcNbV9+KDAf/kmuNHfn//fuucTZqcgq9HpdqxhkzMHPwDHul+IQ7zX3ejRkfgqp7P4rcJi10vv1kY9GoPq2xtzrkHU5cuwKs3nW9tn3Z5L0xOMuM/uzFn6ED0uuUSNLfya4nL7nwKA8fMDyo8gG0Y98N7uOa0Y6282p59LT7/bwYShn+F1taLX24xuXLMJ2h3GPNtgnveyj0yuGHmrzimKfc1wi3P/brf+TYnzcYXfZ9G12OOtNIc1up49Hz6LQyZk2ynAKb// ... and thousands of lines more
No surprise that this small survey takes 854 kB.
Images are linked.
Use the button
Attachment not found
and follow the wizard
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 week 3 days ago by Joffm.
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.
- aureliechabriel
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
1 week 3 days ago #261059
by aureliechabriel
Replied by aureliechabriel on topic Assign a distribution percentage to randomly displayed groups
Hi Joffm,
That works, thanks! And also thanks for the extra advice.
That works, thanks! And also thanks for the extra advice.
Please Log in to join the conversation.