Welcome to the LimeSurvey Community Forum

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

Partial Randomization Answers

  • ChristianHermawan
  • ChristianHermawan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago - 7 years 4 months ago #156610 by ChristianHermawan
Partial Randomization Answers was created by ChristianHermawan
Hi all,

I am newbie here, and developing a survey link. I am wondering how to randomize answers options (single choice, radio list type) except last option. So, it should be like this:

A
B
C
D
None

I want to randomize it each time its reload, except the "None":
C
A
B
D
None

Please help. I've read the manual and tried the script, but it does not work: www.limesurvey.org/manual/Workarounds:_M...28radio.29_questions

Thanks
Last edit: 7 years 4 months ago by ChristianHermawan.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago #156614 by Joffm
Replied by Joffm on topic Partial Randomization Answers
Hi, Christian,
well, I just imported the example file from this workaround section and everything is fine.

Are you sure you use the correct version of this workaround?
Did you import the sample survey?

There are only two questions, q1 without the script, q2 with the script that shows the fixed answers at the bottom.

But remember: This script is for multi response questions.
Use it for singlwe response by setting the max answers to 1.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ChristianHermawan
  • ChristianHermawan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156621 by ChristianHermawan
Replied by ChristianHermawan on topic Partial Randomization Answers
Hi Joffm,

Yes, I imported the survey but when I tried the preview, it did not partially randomize as required.

Attach is my question. Can any one help to make first and second answer option randomize, while third option (Both) is fixed?

Thanks in advance

File Attachment:

File Name: limesurvey...n_15.zip
File Size:1 KB
The topic has been locked.
More
7 years 3 months ago #156630 by jelo
Replied by jelo on topic Partial Randomization Answers
Is ensured that workaround is valid for the installed version of LimeSurvey?
What version of LimeSurvey is used?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #156631 by tpartner
Replied by tpartner on topic Partial Randomization Answers
How can we do that if you won't tell us that LimeSurvey version you are using?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ChristianHermawan
  • ChristianHermawan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156632 by ChristianHermawan
Replied by ChristianHermawan on topic Partial Randomization Answers
I have no idea my version actually. I used the one in the web directly, not install it at the computer. I guess, it is 2.64?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #156645 by holch
Replied by holch on topic Partial Randomization Answers
Usually you can find the version of your LS installation in the footer of each page in the back end admin.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • ChristianHermawan
  • ChristianHermawan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156648 by ChristianHermawan
Replied by ChristianHermawan on topic Partial Randomization Answers
it is 2.67.1
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #156651 by holch
Replied by holch on topic Partial Randomization Answers
So the link to the work around says it has been tested with 2.05, this means it has probably not been tested with 2.6x.
As the templates have changed in between, the script probably won't work for the newest version. If you scroll down a bit, there is also a workaround that seems to work for the newer versions (2.50 and newer). Watch out to search for the steps that are necessary for 2.50 and newer, as there is also a description for the older versions.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 7 years 3 months ago by holch.
The topic has been locked.
  • ChristianHermawan
  • ChristianHermawan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156655 by ChristianHermawan
Replied by ChristianHermawan on topic Partial Randomization Answers
thanks holch, actually i have read and downloaded the sample survey but it didnt work as the fixed answers are still randomized.

My question is attached in my previous reply. I am still a coding learner, so, really appreciate if you can help me with the javascript code.

Thanksss
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #156687 by tpartner
Replied by tpartner on topic Partial Randomization Answers
The workaround should work on 2.64 (the LT version).

You can see the version number at the bottom of the admin control panel.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ChristianHermawan
  • ChristianHermawan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #156690 by ChristianHermawan
Replied by ChristianHermawan on topic Partial Randomization Answers
my version is 2.67.1
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose