Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Answers random order - partial randomization & keeping distinct answers fixed

Answers random order - partial randomization & keeping distinct answers fixed 5 months 1 week ago #131395

  • rasheed
  • rasheed's Avatar
  • Offline
  • Senior Lime
  • Posts: 52
  • Thank you received: 3
  • Karma: 1
I tested this with List (radio) question and it didn't work. Not sure if the script is compatible with 2.05 am using.

Thank you
The administrator has disabled public write access.

Answers random order - partial randomization & keeping distinct answers fixed 5 months 1 week ago #131399

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6126
  • Thank you received: 1359
  • Karma: 534
Tested what? There are several scripts in this thread. What are you trying to do and what script have you used?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Answers random order - partial randomization & keeping distinct answers fixed 5 months 1 week ago #131401

  • rasheed
  • rasheed's Avatar
  • Offline
  • Senior Lime
  • Posts: 52
  • Thank you received: 3
  • Karma: 1
The administrator has disabled public write access.

Answers random order - partial randomization & keeping distinct answers fixed 5 months 1 week ago #131405

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6126
  • Thank you received: 1359
  • Karma: 534
I find that the survey supplied in the workaround works in 2.05. Have you tried with the default template? Do you have any JavaScript errors?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Answers random order - partial randomization & keeping distinct answers fixed 5 months 1 week ago #131407

  • rasheed
  • rasheed's Avatar
  • Offline
  • Senior Lime
  • Posts: 52
  • Thank you received: 3
  • Karma: 1
I think i found the reason. It doesn't actually work when answers are displayed in columns... :/
The administrator has disabled public write access.

Answers random order - partial randomization & keeping distinct answers fixed 5 months 1 week ago #131453

  • rasheed
  • rasheed's Avatar
  • Offline
  • Senior Lime
  • Posts: 52
  • Thank you received: 3
  • Karma: 1
Is there any solution to make work with columns please ?

Thank you !
The administrator has disabled public write access.

Answers random order - partial randomization & keeping distinct answers fixed 4 months 1 week ago #133153

  • kapelas
  • kapelas's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Thank you received: 1
  • Karma: 0
Regarding rasheed 's link in limesurvey, I would like to submit a small conversion to the script for partially randomize question in Array AND having the Repeat headers activated.
So, regarding the exact link
manual.limesurvey.org/Workarounds:_Manip...rs_-_Array_questions

If you add the <tag>:last</tag>, to point to the last descendant of the tbody, you add the question ONLY on the last tbody section of the repeated sections, otherwise the fixed sub-questions is added on every tbody section.

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
...
// Move the "fixed" row to the end
$('table.subquestions-list tbody:last', thisQuestion).append($('tr[id$="X'+q1ID+fixedCode+'"]'));
...
</script>
The administrator has disabled public write access.
The following user(s) said Thank You: tpartner

Answers random order - partial randomization & keeping distinct answers fixed 2 months 4 days ago #136519

  • Blume
  • Blume's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Hi,

is there also a solution for multiple choice/option questions?
I want to randomize answer options of a multiple choice/option question, but keep the last input answer and other fix. I work with Version 2.06.

My example:
Answer A
Answer B
Answer C
Answer D
Other (advance settings)

--> Answer D and "other" should be fixed and not randomized.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.217 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form