Welcome to the LimeSurvey Community Forum

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

Different types of subquestions in the question array and restrictions

  • luizaazolin17
  • luizaazolin17's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago - 10 months 1 week ago #243505 by luizaazolin17
Hello, I have two issues with an array question, if anyone can help me please.

1) I have two subquestions with radio buttons (see figure). The second answer cannot be the same as the answer given in the first. How do I make this restriction?

2) I would like to add a 3rd subquestion but in a different format, with a drop-down list (as in the figure). Is it possible? How can I do it?

 
Last edit: 10 months 1 week ago by luizaazolin17.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 week ago #243507 by Joffm
Split the question into a question of type array and one of type array(text) with drop-downs.
Merge the questions with css classes "no-question" and "no-bottom"

Use question validation "unique(self)" to avoid identical answers.

Examples of all here in the forum.
I am a bit short of time to create  something.
You should have answered the questions at the beginning and send a lss export of these questions.

Joffm

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

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 week ago #243510 by Joffm
Could look like this
 

and with "not unique" error
 

Joffm
 

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

Please Log in to join the conversation.

  • luizaazolin17
  • luizaazolin17's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago - 10 months 1 week ago #243515 by luizaazolin17
Thanks for your answer! It's what I need..
Unfortunately I'm still trying to apply it (I don't have much knowledge in coding).
Do you have the file of that example you showed? If so, can you share please?
Attached is my question (still unmodified).

thanks

 

File Attachment:

File Name: limesurvey...6071.lsq
File Size:14 KB
Last edit: 10 months 1 week ago by luizaazolin17.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 week ago #243575 by holch
Never provide LSQ or LSG files, always provide LSS files (unless otherwise requested by a helper of the forum).

Why? Mainly because it helps us to help you.

LSQ and LSG files are language sensitive. Not only do we first need to create a Survey (and in the case of LSQ) also a question group, but we also need to do it in the correct base language. So either we need to guess it or open the LSQ / LSG file in a text editor to see what the base language is.

So please help us to help you, provide a LSS file. And no, we do NOT want your whole survey, only the relevant bits for this thread.

1. Copy your survey
2. Delete everything that is not relevant for the issue described
3. Export this cleaned survey as LSS
4. Upload it here

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

The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 week ago #243594 by Joffm
Hi,
here you get the lss of my example.
As you did not answer the questions at the beginning, this example was created in version 5.x.
 

File Attachment:

File Name: limesurvey...4247.lss
File Size:35 KB

To merge the questions enter this at the end of your "custom.css" (of your extended theme)
Code:
.no-question{border-top:0;}
.no-question .question-title-container{display:none;}
.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-question2 tr.ls-heading { display:none; }
.no-bottom .answer-container {
    padding-bottom: 0em;
}

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

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose