Welcome to the LimeSurvey Community Forum

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

secondary options random display

  • surveySn
  • surveySn's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 4 months ago - 2 years 4 months ago #222331 by surveySn
secondary options random display was created by surveySn
[url] forums.limesurvey.org/forum/german-forum...ige-antworten#188743 [/url]
[url] manual.limesurvey.org/Workarounds:_Manip...estion_for_later_use [/url]

The two methods

Can random display be implemented?

 
Random display, but do not disturb the grouping.

Version 3.25.4 + 201215
Last edit: 2 years 4 months ago by surveySn.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 4 months ago #222335 by Joffm
Replied by Joffm on topic secondary options random display
Hi,
you know that this is one "multiple" questions with some checkboxes removed.
And LimeSurvey does not offer an option to "group" answer options or subquestions.

What I can show you is:

Create two "multiple" questions
Do not remove the checkboxes of certain subquestions but insert an additional header.
Because you referred to this link in the German part, you might be able to read German.
So have a look at my Tutorial 2, Chapter 2.2.
Both questions have the same "Randomization Group name"
In both questions set ""random order" to ON.
Now merge the two questions by adding the css classes "no-question" resp. "no-bottom"
To decide which question was first, use the property ".qseq"
You can insert the css classes by Expression Manager like
{if(Q1_SQ001.qseq==0,'no-bottom','no-question')}
If the question was the first add class "no-bottom" else "no-question"
And in the second question the same.
{if(Q2_SQ001.qseq==0,'no-bottom','no-question')}

You did not say how you want to use this.
Are participants only allowed to select subquestions of one of the two groups?
Then you have to validate.

Therefore I started with a question of type "text display" to display the question and the error message.
Followed by the two multiple questions.
 

 

And here the css classes:
Code:
.no-question{ border-top:0; }
.no-question .question-title-container{ display:none; }
.no-question .question-valid-container{ display:none; }
.no-question .answer-container {
    padding-top: 0em;
    padding-bottom: 0.5em;
}
.no-bottom{ border-bottom:0;margin-bottom:0; }
.no-bottom .answer-container {
    padding-bottom: 0em;
}
Either insert it into the "custom.css" or you may insert it into one of the questions - as I did in the "text display".

 

File Attachment:

File Name: limesurvey...8798.lss
File Size:23 KB


But to be honest:
In this case it is much better to prepend a single question "Which of these two options do you prefer?" and than show the according multiple question.

Joffm



 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, surveySn
The topic has been locked.
  • surveySn
  • surveySn's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 4 months ago #222392 by surveySn
Replied by surveySn on topic secondary options random display
Thank you very much.

This method is only suitable for paging by group,

I need to create more than 100 groups

 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 4 months ago - 2 years 4 months ago #222393 by Joffm
Replied by Joffm on topic secondary options random display

I need to create more than 100 groups

And?  This is done i about half an hour.

Because of such solutions ( where you merge several questions into one) we often recommend to use the "group by group" mode with one question per group.
This way the look&feel is like "question by question", but you have still the option to show more than one question per page, or combine questions.

But you remember that I wrote

But to be honest:
In this case it is much better to prepend a single question "Which of these two options do you prefer?" and than show the according multiple question.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 4 months ago by Joffm.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose