- Posts: 21
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Adding NA option in slider questions
- jan.philipp.thomeczek
- Topic Author
- Offline
- Junior Member
Less
More
2 months 3 weeks ago #255168
by jan.philipp.thomeczek
Adding NA option in slider questions was created by jan.philipp.thomeczek
Please help us help you and fill where relevant:
Your LimeSurvey version: Cloud 6.4.4
Own server or LimeSurvey hosting: LimeSurvey
Survey theme/template: Twentythree
==================
Hi all,
I'm looking for a possibility to add a NA button to the slider questions (something like "skip question"). I know that a workaround is to use another question type like Matrix. However, I think the slider is really nice, and I would like to use it. Is there a way to integrate this?
Of course, if users just skip the question, it's also going to be NA, but this is a bit difficult to explain.
Your LimeSurvey version: Cloud 6.4.4
Own server or LimeSurvey hosting: LimeSurvey
Survey theme/template: Twentythree
==================
Hi all,
I'm looking for a possibility to add a NA button to the slider questions (something like "skip question"). I know that a workaround is to use another question type like Matrix. However, I think the slider is really nice, and I would like to use it. Is there a way to integrate this?
Of course, if users just skip the question, it's also going to be NA, but this is a bit difficult to explain.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
2 months 3 weeks ago #255170
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Adding NA option in slider questions
The reset button is not sufficient?
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 months 3 weeks ago #255172
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 Adding NA option in slider questions
If you want explicit N/A selections, you can do this...
1) Add a multiple-choice question after the slider question with the same sub-questions and codes.
2) In the slider question, set array filter exclusion to that new question code.
3) In the slider question, set array filter style to "Disabled".
4) Add this little script to the source of the slider question. It will move the check-boxes into that question.
Sample survey attached:
1) Add a multiple-choice question after the slider question with the same sub-questions and codes.
2) In the slider question, set array filter exclusion to that new question code.
3) In the slider question, set array filter style to "Disabled".
4) Add this little script to the source of the slider question. It will move the check-boxes into that question.
Code:
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question{QID}'); var filterQuestion = $(thisQuestion).nextAll('.multiple-opt:eq(0)'); // Hide the filter question $(filterQuestion).hide(); // Move the checkbox rows $('li.answer-item.numeric-item', thisQuestion).each(function(i) { $(this).after($('li.answer-item:eq(0)', filterQuestion)); }); // Some clean-up styles $('li.numeric-item', thisQuestion).css({ 'margin-bottom': 0, 'min-height': 0 }) $('li.checkbox-item *', thisQuestion).removeClass('col-auto'); $('li.checkbox-item', thisQuestion).removeClass('mb-1').css({ 'margin-bottom': '50px', 'text-align': 'center' }) }); </script>
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- jan.philipp.thomeczek
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
2 months 3 weeks ago #255174
by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
Absolutely amazing, exactly what I wanted! And your response was so super quick. Thanks a million!!
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
2 months 3 weeks ago #255252
by holch
While I agree that the slider looks good and is a welcome change to the standard questions, make sure to thoroughly test with mobile screens, as the slider often isn't as user friendly on touch screens and today, many surveys are mainly responded on mobile.
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 Adding NA option in slider questions
However, I think the slider is really nice,
While I agree that the slider looks good and is a welcome change to the standard questions, make sure to thoroughly test with mobile screens, as the slider often isn't as user friendly on touch screens and today, many surveys are mainly responded on mobile.
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.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 months 3 weeks ago #255260
by tpartner
Depending in the layout, sliders with vertical layout may interfere with the ability to scroll vertically which is almost always required.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Adding NA option in slider questions
I find that the horizontal slider works well on smaller screens as there should never be a reqirement to scroll horizontally....as the slider often isn't as user friendly on touch screens...
Depending in the layout, sliders with vertical layout may interfere with the ability to scroll vertically which is almost always required.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
2 months 3 weeks ago #255262
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 Adding NA option in slider questions
@tpartner: The issues that I usually see is to get the slider positioned well on the scale with a touch screen, but that is why I said to test it well. It all depends a bit on the actual question, how exact things should be, etc.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
2 months 3 weeks ago #255263
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 Adding NA option in slider questions
Yeah, fine adjustments can be tricky - that's why I developed this question theme.
- github.com/tpartner/LimeSurvey-Slider-Controls-6x
- github.com/tpartner/LimeSurvey-Slider-Controls-6x
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- jan.philipp.thomeczek
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
2 months 3 weeks ago #255277
by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
That's pretty cool, thanks for sharing!
generally, the slider works perfect for me, used it in many surveys now and nobody ever complained. Also looks nice on mobile.
generally, the slider works perfect for me, used it in many surveys now and nobody ever complained. Also looks nice on mobile.
Please Log in to join the conversation.
- jan.philipp.thomeczek
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
1 week 6 days ago - 1 week 6 days ago #260284
by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
Hey TP, seems like it doesn't work with 6.x? Or do I have to do anything for activation? I can select the question type, but nothing happens. Using Fruity 23.
Last edit: 1 week 6 days ago by jan.philipp.thomeczek. Reason: new info
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
1 week 4 days ago - 1 week 4 days ago #260347
by tpartner
The most common problem is that the files are not in the correct location. The file structure should look like the screenshot below.
Having said that, you may want to download the latest version, I have updated it for vertical orientation - github.com/tpartner/LimeSurvey-Slider-Controls-6x
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Adding NA option in slider questions
It does work for me in LS 6.5.2.Hey TP, seems like it doesn't work with 6.x? Or do I have to do anything for activation? I can select the question type, but nothing happens. Using Fruity 23.
The most common problem is that the files are not in the correct location. The file structure should look like the screenshot below.
Having said that, you may want to download the latest version, I have updated it for vertical orientation - github.com/tpartner/LimeSurvey-Slider-Controls-6x
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 week 4 days ago by tpartner.
Please Log in to join the conversation.
- jan.philipp.thomeczek
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 0
1 week 4 days ago #260351
by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
That is very weird, I have 6.5.3 and imported via the theme manager (can't add the folder manually since it's the cloud version). I can select the question, but the +/- simply doesn't show up, it's a regular slider question. Anything else I need to do in order to get it working?
Please Log in to join the conversation.