- Posts: 44
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple numerical input - combination of text box and slider
- ch123
- Topic Author
- Offline
- Senior Member
Less
More
4 years 3 months ago #192545
by ch123
Multiple numerical input - combination of text box and slider was created by ch123
Hi. Hope that you could help me
Is it possible to get a combination of different text boxes and sliders in one multiple numerical input question type? The participants have to fill out different questions about several people with a few attributes (=text) and a few ratings (=slider). Of course it would be possible to do two seperate questions (see screenshot), but would prefer it in one question.
Maybe this could be done with javascript?
So far I am using a script to get a short text question into an array sometimes, but as I'm a newbie to coding I'm not able to adapt it or something ...
Any help would be great. Thanks in advance!
Is it possible to get a combination of different text boxes and sliders in one multiple numerical input question type? The participants have to fill out different questions about several people with a few attributes (=text) and a few ratings (=slider). Of course it would be possible to do two seperate questions (see screenshot), but would prefer it in one question.
Maybe this could be done with javascript?
So far I am using a script to get a short text question into an array sometimes, but as I'm a newbie to coding I'm not able to adapt it or something ...
Code:
<script> $(document).ready(function() { // Identify the questions var Test = $('#question'+{QID}+''); var Q1 = $(arrayQuestion).nextAll('.text-short:eq(0)'); // Hide the short-text question $(Q1).hide(); // Move the hidden text input into the array $('th.answertext:last', arrayQuestion).append($('input[type="text"]', Q1)); // Some styling... $('input[type="text"]', arrayQuestion).css({ 'text-align': 'left', 'width': '70%' }); }); </script>
Any help would be great. Thanks in advance!
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 3 months ago #192548
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple numerical input - combination of text box and slider
No need of javascript.
Look here
www.limesurvey.org/forum/can-i-do-this-w...know-checkbox#187320
There is a sample survey where you find the setting of the css classes.
Joffm
Look here
www.limesurvey.org/forum/can-i-do-this-w...know-checkbox#187320
There is a sample survey where you find the setting of the css classes.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: ch123
The topic has been locked.
- ch123
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 3
4 years 3 months ago #192563
by ch123
Replied by ch123 on topic Multiple numerical input - combination of text box and slider
Worked perfectly again, thanks a lot!
The topic has been locked.