- Posts: 4
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
10 months 1 week ago - 10 months 1 week ago #243505
by luizaazolin17
Different types of subquestions in the question array and restrictions was created 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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
10 months 1 week ago #243507
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Different types of subquestions in the question array and restrictions
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
10 months 1 week ago #243510
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Different types of subquestions in the question array and restrictions
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- luizaazolin17
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 months 1 week ago - 10 months 1 week ago #243515
by luizaazolin17
Replied by luizaazolin17 on topic Different types of subquestions in the question array and restrictions
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
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
Last edit: 10 months 1 week ago by luizaazolin17.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
10 months 1 week ago #243575
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Different types of subquestions in the question array and restrictions
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
10 months 1 week ago #243594
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Different types of subquestions in the question array and restrictions
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.
To merge the questions enter this at the end of your "custom.css" (of your extended theme)
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.
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.