Welcome to the LimeSurvey Community Forum

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

Randomizing question order with only 5 displaying per page at a time

  • JJindra
  • JJindra's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 12 hours ago #270750 by JJindra
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.14.3+250617
Own server or LimeSurvey hosting: Yes
Survey theme/template:
==================
I am doing a Survey with a Likert scale and would like some help in making my Survey more user friendly. 
I have a set of 40 questions, which are all to be displayed in random order. To make the survey more user friendly, I would like display 5 question per page.
I know I can manually split them into 8 question groups and with random question order in each group and have the question groups appear in random order aswell. However this comes with the drawback of having the same questions appear always together, which I would like to avoid. 

Please Log in to join the conversation.

  • paul.borsdorf
  • paul.borsdorf's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
1 week 2 hours ago #270755 by paul.borsdorf
You can split the 40 questions into 8 question groups and enter the same randomization group name for all 40 questions. This will achieve exactly what you want (you don't need to configure anything at the question group level).

Brauchen Sie Unterstützung bei der Erstellung und Auswertung von Umfragen mit LimeSurvey?
Mein Angebot als autorisierter LimeSurvey-Partner finden Sie auf meiner Website www.paulborsdorf.de

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 2 hours ago #270756 by Joffm
Hi,
two quick ideas
1.
  • create five groups
  • create eight questions of type "array"  in each group
  • ALL questions get the same "randomization group name"
  • Merge the questions with css classes "no-bottom" and "no-question"
Code:
.no-question {
    border-top:0;
    margin-top: -10px;
}
.no-question .question-title-container,
.no-question .question-valid-container {
    display:none;
}
.no-bottom {
    border-bottom:0;
    margin-bottom:0;
}
.no-question .answer-container {
    padding-top: 0em;
    padding-bottom: 0.5em;
}    
.no-question .question-container {
    border: none !important;
    margin-top: -10px !important;
}    


2.
  • create a random order (01-40) in a script. Result (res) : 36210717023526...
  • Fill a "container" (pool) , let's say a question of type "long text", with your 40 items.
  • Make this well structured, like
    01:This is my first item
    02:This is my second item
    03:...
    and all items with the same length (here 100)
  • In the first question pipe the text with index "36", in the second question "21", and so on.
  • Done by some string functions like this
    1. question: {trim(substr(pool,strpos(pool,substr(res,0,2))+3,100))}
    2. question: {trim(substr(pool,strpos(pool,substr(res,2,2))+3,100))}
    3. question: {trim(substr(pool,strpos(pool,substr(res,4,2))+3,100))}
But beware: You have to restructure a lot before you will be able to analyse.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose