- Posts: 17
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I put boxes before the answers?
- bogika0107
- Topic Author
- Offline
- New Member
Less
More
7 years 9 months ago #139304
by bogika0107
Can I put boxes before the answers? was created by bogika0107
Hello everyone!
Is it possible, that i put boxes before the answer choises?
I know I can do this:
answer text: "box" %
But i want to do this:
"box" % answer text1
"box" % answer text2
I attached images what I would like to do in Limesurvey, it has been written in Word.
Is it possible, that i put boxes before the answer choises?
I know I can do this:
answer text: "box" %
But i want to do this:
"box" % answer text1
"box" % answer text2
I attached images what I would like to do in Limesurvey, it has been written in Word.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
7 years 9 months ago #139310
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 Can I put boxes before the answers?
LimeSurvey version?
Template used?
Question type?
Template used?
Question type?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- bogika0107
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
7 years 9 months ago #139312
by bogika0107
Replied by bogika0107 on topic Can I put boxes before the answers?
LimeSurvey version? 2.06+
Template used? I think it's own template
Question type? multiple numerical input
My result is attached. I would like to know that can I replace the box with the text?
Thank you!
Template used? I think it's own template
Question type? multiple numerical input
My result is attached. I would like to know that can I replace the box with the text?
Thank you!
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
7 years 9 months ago #139319
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 Can I put boxes before the answers?
Set up your survey to use JavaScript
and place the following script in the source of the question:
Then, add something like this to the end of template.css:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('question{QID}'); // Assign a class to the question $(thisQuestion).addClass('with-preceding-labels'); // Move the labels $('li.answer-item', thisQuestion).each(function(i) { $(this).prepend($('span.input', this)); }); }); </script>
Then, add something like this to the end of template.css:
Code:
.numeric-multi.with-preceding-labels span.input { padding-left: 0; padding-right: 5px; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: bogika0107
The topic has been locked.
- bogika0107
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
7 years 9 months ago #139320
by bogika0107
Replied by bogika0107 on topic Can I put boxes before the answers?
Thank you very much!
The topic has been locked.