- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple opt. question with ONLY ONE BIG comment box !
- ASDLR
- Topic Author
- Offline
- New Member
Less
More
10 years 2 weeks ago - 10 years 2 weeks ago #105904
by ASDLR
Multiple opt. question with ONLY ONE BIG comment box ! was created by ASDLR
Dear all,
I am new to the forum and I thank you very much in advance for your help.
On a survey i am currently building for my PhD sociological research, I am trying to ask a multiple choice question with solely one big comment box (and not a small one for each answer modality as it is by default programmed).
I am using the Vallendar design and must say have been lacking experience in order for me to be able to modify the css/js code of the template.
Looking forward to reading your responses.
Sincerely,
ASDLR.
I am new to the forum and I thank you very much in advance for your help.
On a survey i am currently building for my PhD sociological research, I am trying to ask a multiple choice question with solely one big comment box (and not a small one for each answer modality as it is by default programmed).
I am using the Vallendar design and must say have been lacking experience in order for me to be able to modify the css/js code of the template.
Looking forward to reading your responses.
Sincerely,
ASDLR.
Last edit: 10 years 2 weeks ago by ASDLR.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
10 years 2 weeks ago #105906
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 Multiple opt. question with ONLY ONE BIG comment box !
Here are the different question types available directly in Limesurvey.
manual.limesurvey.org/Question_types
As you have already noticed, you don't have a question type "multipe choice with one big comment field". There is one "list with comment", which is what you are probably looking for, but as multiple choice.
What I would do now is to create two questions: one multiple choice and one long free text. Then I would try to hide the question for the long free text via CSS. I guess this is the easiest way to achive what you want.
manual.limesurvey.org/Question_types
As you have already noticed, you don't have a question type "multipe choice with one big comment field". There is one "list with comment", which is what you are probably looking for, but as multiple choice.
What I would do now is to create two questions: one multiple choice and one long free text. Then I would try to hide the question for the long free text via CSS. I guess this is the easiest way to achive what you want.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- ASDLR
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
10 years 1 week ago - 10 years 1 week ago #106082
by ASDLR
Replied by ASDLR on topic Multiple opt. question with ONLY ONE BIG comment box !
Dear Holch, thanks for your response.
Any way you could help me out with the css modification procedure ? It is not my forte, i must admit.
Any way you could help me out with the css modification procedure ? It is not my forte, i must admit.
Last edit: 10 years 1 week ago by ASDLR.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
10 years 1 week ago #106083
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 Multiple opt. question with ONLY ONE BIG comment box !
This depends very much on the template you are using and the way you want it to look. Do you have a 'mockup' that shows how the questions looks like/should look like?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2548
10 years 1 week ago #106089
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Multiple opt. question with ONLY ONE BIG comment box !
Hi,
Q1: multi check box
Q2: long text question
Some css and/or js to put Q2 rigth of Q1.
Q1: multi check box
Q2: long text question
Some css and/or js to put Q2 rigth of Q1.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- tpartner
- Online
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3691
10 years 1 week ago #106093
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Multiple opt. question with ONLY ONE BIG comment box !
To expand on Denis' suggestion...
1) Place a long-text question directly after the multiple-options question
2) Set up your survey to use JavaScript .
3) Add the following script to the source of the multiple-options question.
1) Place a long-text question directly after the multiple-options question
2) Set up your survey to use JavaScript .
3) Add the following script to the source of the multiple-options question.
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify the questions var thisQuestion = $('#question{QID}'); var nextQuestion = $(thisQuestion).nextAll('.text-long:eq(0)'); // Hide the long-text question $(nextQuestion).hide(); // Move the textarea $('ul.subquestions-list', thisQuestion).after($('textarea', nextQuestion)); // Some styling $('ul.subquestions-list', thisQuestion).css({ 'width':'50%', 'float':'left' }); $('textarea', thisQuestion).css({ 'float':'right' }); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
- ASDLR
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
10 years 1 week ago #106096
by ASDLR
Replied by ASDLR on topic Multiple opt. question with ONLY ONE BIG comment box !
Wonderful tpartner ! It worked like a charm.
I definitely will consider donating to help you guys out (though a PhD student in sociology ain't, by definition, very rich).
Thanks again!
I definitely will consider donating to help you guys out (though a PhD student in sociology ain't, by definition, very rich).
Thanks again!
The topic has been locked.