Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Adding NA option in slider questions

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 2 weeks ago #260352 by tpartner
Replied by tpartner on topic Adding NA option in slider questions
Did you follow the implementation instructions or did you install  the downloaded LimeSurvey-Slider-Controls-6x-main.zip directly?

 

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
  • jan.philipp.thomeczek's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 months 2 weeks ago #260353 by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
Zip directly. As I wrote, there's no other way in the Cloud version.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 2 weeks ago - 7 months 2 weeks ago #260355 by tpartner
Replied by tpartner on topic Adding NA option in slider questions
Yes, but you need to upload Slider-With-Controls.zip NOT LimeSurvey-Slider-Controls-6x-main.zip.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 months 2 weeks ago by tpartner.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • jan.philipp.thomeczek
  • jan.philipp.thomeczek's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 months 2 weeks ago #260397 by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
Got it and it works! Thanks!

Please Log in to join the conversation.

  • jan.philipp.thomeczek
  • jan.philipp.thomeczek's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 week ago #264696 by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
Still works quite well so far! Just one question, I noticed that there is a big gap between the skip box and the end of the survey (i.e., users have to scroll down a bit until they see the next button). Can I minimise this space somehow?

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 week ago #264719 by tpartner
Replied by tpartner on topic Adding NA option in slider questions
Explore the HTML elements and styles with your browser developer tools (F12) to see what is introducing the space.

Or, activate a sample survey and give a link here so we can see.

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
  • jan.philipp.thomeczek's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 week ago #264723 by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
Thanks, here is the test: meinungsforschung-uni-potsdam2.limesurve...98?newtest=Y&lang=de
Both the NA box as well as the +/- control buttons come with some space.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 week ago #264724 by Joffm
Replied by Joffm on topic Adding NA option in slider questions
There seems to be something wrong in your design.

I see this
 
instead of this
 

So you should send your lss, too.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • jan.philipp.thomeczek
  • jan.philipp.thomeczek's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 week ago #264898 by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
OK this is very weird, see the attached screenshot. How can it look so differently, that shouldn't happen right?! Worries me a bit.

Anyway, I also attached the LSS. Thanks for having a look!

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 week ago #264903 by tpartner
Replied by tpartner on topic Adding NA option in slider questions
It looks to me like there is a JavaScript error but I'm away from a PC so can't test.

Check the console (F12) for errors.

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
  • jan.philipp.thomeczek's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 week ago #264904 by jan.philipp.thomeczek
Replied by jan.philipp.thomeczek on topic Adding NA option in slider questions
I only see an error (with a triangle) regarding colour, but I think that stems from the template... but I'm really not an expert on Java, need to do a course on that...

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 week ago #264906 by Joffm
Replied by Joffm on topic Adding NA option in slider questions
Hi,
I do not see any script in your lss.

I talk about this one that was already shown at the beginning of this thread.
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': '20px',
            'text-align': 'center'
        })
 
    });
</script>

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose