Welcome to the LimeSurvey Community Forum

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

dual scale to multiple scale

  • rolasj
  • rolasj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #225292 by rolasj
dual scale to multiple scale was created by rolasj
Hi

i need question type like dual scale, but with 6 scales, like in picture below

maybe there was such a question I can't find?
can anyone help / advise?

thanks, 
Rolandas
[img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABF8AAAB0CAYAAABT/p2CAAAXAUlEQVR4nO3d/28b933H8dcF+QvWpTVjDzJ0wn7IL0X8g5wQsiqkGUlkwpJ5Dia5HcSgjgbSaAOhLqkCrocZAiqxHoL+YBJzXUTuUllAY08ZDEPXpoIms6rjodmCDRmw8girtS1nAfovcD9ovOj0zZR0nw+/6PkABJin8+d9Z0svSu/73OecWq1W+4vX/lL/MvfPkqT//ewz5ce/q2+ePatjx57X1atXdebMGQEAAAAAAGD3nt644YvPPKOpye/ri88804zjAQAAAAAA6ChP/c9vfytpbcZLHY0XAAAAAACAaDz1/ckpSVJ+/LuhBgwAAAAAAAD276lvnj2rL3zhC/rm2bPMeAEAAAAAAIjY08eOPa93fny12ccBAAAAAADQkZ6+epXGCwAAAAAAgClOrVarPXEnx7FxLAAAAAAAAG2lgbbK5kdN72cwYDuO4/A1hJbgOI5uLa82+zBwwAzGY2QgrCPv0CxkHpqF3EMzDMZjDe33lOHjAAAAAAAAOyh9+/lmHwIMo/kCAAAAAABgEM0XAAAAAAAAg2i+4EDLZrOanZ1t9mEAIcVL41r6YK7Zh4EDhjxEM5B3sImcQ7OQdZBovqCFZbNZOY6jarXa7EPBAXbj3csajMc0GI/pwthwsw8HB0ShUJDjOHIcRz09Pc0+HBwwF8aGNRiP6fGjlWYfCg6Inp6eIPMcx6FBAqvqmTcYj6l4abzZh4MORvMFLamnp0f9/f3NPgxAH/+mrFvLq7q1vKrVB/e5agErFhYWVKvVVKvV1NPTwy8isObGu5d16HBXsw8DB9CdO3eC3BsaGmr24e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VSS7/v7Gmdqakr5fD60eG46nVYmkwndRpTJZDQxMRFa1DeZTG7aBgAAAAAAYJuR5ks+n5e0to7Ldo+JbkQul9PU1FRonEQioWKxGNqvv79fnucpkUgE29LptDzPa2ihXwAAAAAAAFOMrPmy21uNcrnctgvy7vS5uqGhIQ0NDT1xGwAAAAAAgG1GF9xthPuNFWu1/B93WasFAAAAAAAgtUDzhYYIAAAAAADoZE1vvjDzBQAAAAAAdDKn1sACLY7j2DgWAAAAAACAttLIurcNz3zZ7SK6wHqO4zTta8hWbZvnyDntr86t5VXjdQbjMSt1bNbqtDo2aw3GY3zPtngdm7U6Le8k8qEd6tisRea1fh2btWyfUyd933ZqPnTiOTXCyKOmAQAAAAAAsIbmCwAAAAAAgEE0XwAAAAAAAAyi+QIAAAAAAGAQzRcAAAAAAACDaL4AAAAAAAAYRPMFAAAAAADAIJovAAAAAAAABtF8AQAAAAAAMIjmCwAAAAAAgEH/BwFDAaWhjCzyAAAAAElFTkSuQmCC[/img]

my limesurvey:

LimeSurvey Community Edition

Version 5.1.5+210830
own server



Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
(Write here your question/remark)

Please Log in to join the conversation.

  • rolasj
  • rolasj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #225293 by rolasj
Replied by rolasj on topic dual scale to multiple scale
Hii need question type like dual scale, but with 6 scales, like in attachmentmaybe there was such a question I can't find?can anyone help / advise?thanks, Rolandasmy limesurvey:LimeSurvey Community EditionVersion 5.1.5 210830own serverPlease help us help you and fill where relevant:Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]Own server or LimeSurvey hosting:Survey theme/template:==================(Write here your question/remark) 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #225294 by Joffm
Replied by Joffm on topic dual scale to multiple scale
Hi, 
this question type "dual scale" is called like that, because there are two scales, no more, no less.
And it has a certain meaning in market and opinion research.

Second: How do you imagine to place 36 radio buttons on a page?
Did you try with a "normal" array?

So, to achieve this you may use an array(numbers) with dropdown layout.
As obviously all your scales have the same options place this javascript into the sourcecode of your question
Code:
<script type="text/javascript" charset="utf-8">
    $(document).on('ready pjax:scriptcomplete',function(){
        var thisQuestion = $('#question{QID}');
 
        // Insert selects
        $('.answer-item', thisQuestion).append('<select class="inserted-select form-control list-question-select">\
 <option value="">Please choose...</option>\
<option value="1">very good</option>\
<option value="2">good</option>\
<option value="3">neither / nor</option>\
<option value="4">poor</option>\
<option value="5">very poor</option>\
<option value="6">DK/NA</option>\
  </select>'); 
 
        // Listeners
        $('.inserted-select', thisQuestion).on('change', function(i) {
            if($(this).val() != '') {
                $(this).closest('.answer-item').find('input:text').val($.trim($(this).val())).trigger('change');
            }
            else {
                $(this).closest('.answer-item').find('input:text').val('').trigger('change');
            }
        });
 
        // Returning to page
        $('input:text', thisQuestion).each(function(i) {
            var thisCell = $(this).closest('.answer-item');
            var inputVal = $.trim($(this).val());
            $('select.inserted-select', thisCell).val(inputVal);
        });
 
        // Clean-up styles
        $('select.inserted-select', thisQuestion).css({
            'max-width': '100%'
        });
        $('input:text', thisQuestion).css({
            'position': 'absolute',
            'left': '-9999em'
        });
    });
</script>

 

Or you use this workaround
 

with this script. Of course you have to adapt it.
Code:
<style type="text/css">.big-radio {
    width: 16px !important;
      height: 16px !important;
  }
  .clickable-span:hover {
    cursor: pointer;
    text-decoration: underline;
  }
td.with-select input.form-control { display:none;}
.ls-answers .ls-heading th {
    text-align: left;
}
</style>
<script type="text/javascript" charset="utf-8">
    var checkClosest = function(elem) {
      elem.firstElementChild.click();
    };
  
      $(document).on('ready pjax:scriptcomplete', function(){
        var thisQuestion = $('#question{QID}');
      
        // Insert radios
        if(!document.querySelector(".inserted-radio")){
            $('.answer-item.answer_cell_X001', thisQuestion).addClass('with-select').append(
              '<div style="text-align: left" class="list-question-select">\
                <span onclick="checkClosest(this)">\
                    <input value="1" class="inserted-radio" type="radio" name="radio_" id="radio-1" /> Sehr oft </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="2"        class="inserted-radio" type="radio" name="radio_" id="radio-2" /> Oft        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="3"     class="inserted-radio" type="radio" name="radio_" id="radio-3" /> Manchmal     </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="4"        class="inserted-radio" type="radio" name="radio_" id="radio-4" /> Selten        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="5" class="inserted-radio" type="radio" name="radio_" id="radio-5" /> Nie </span>  \
              </div>'
            );
            $('.answer-item.answer_cell_X002', thisQuestion).addClass('with-select').append(
              '<div style="text-align: left" class="list-question-select">\
                <span onclick="checkClosest(this)">\
                    <input value="1" class="inserted-radio" type="radio" name="radio_" id="radio-1" /> Sehr oft </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="2"        class="inserted-radio" type="radio" name="radio_" id="radio-2" /> Oft        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="3"     class="inserted-radio" type="radio" name="radio_" id="radio-3" /> Manchmal     </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="4"        class="inserted-radio" type="radio" name="radio_" id="radio-4" /> Selten        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="5" class="inserted-radio" type="radio" name="radio_" id="radio-5" /> Nie </span>  \
              </div>'
            );
            $('.answer-item.answer_cell_X003', thisQuestion).addClass('with-select').append(
              '<div style="text-align: left" class="list-question-select">\
                <span onclick="checkClosest(this)">\
                    <input value="1" class="inserted-radio" type="radio" name="radio_" id="radio-1" /> Sehr oft </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="2"        class="inserted-radio" type="radio" name="radio_" id="radio-2" /> Oft        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="3"     class="inserted-radio" type="radio" name="radio_" id="radio-3" /> Manchmal     </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="4"        class="inserted-radio" type="radio" name="radio_" id="radio-4" /> Selten        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="5" class="inserted-radio" type="radio" name="radio_" id="radio-5" /> Nie </span>  \
              </div>'
            );
            $('.answer-item.answer_cell_X004', thisQuestion).addClass('with-select').append(
              '<div style="text-align: left" class="list-question-select">\
                <span onclick="checkClosest(this)">\
                    <input value="1" class="inserted-radio" type="radio" name="radio_" id="radio-1" /> Sehr oft </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="2"        class="inserted-radio" type="radio" name="radio_" id="radio-2" /> Oft        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="3"     class="inserted-radio" type="radio" name="radio_" id="radio-3" /> Manchmal     </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="4"        class="inserted-radio" type="radio" name="radio_" id="radio-4" /> Selten        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="5" class="inserted-radio" type="radio" name="radio_" id="radio-5" /> Nie </span>  \
              </div>'
            );
            $('.answer-item.answer_cell_X005', thisQuestion).addClass('with-select').append(
              '<div style="text-align: left" class="list-question-select">\
                <span onclick="checkClosest(this)">\
                    <input value="1" class="inserted-radio" type="radio" name="radio_" id="radio-1" /> Sehr oft </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="2"        class="inserted-radio" type="radio" name="radio_" id="radio-2" /> Oft        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="3"     class="inserted-radio" type="radio" name="radio_" id="radio-3" /> Manchmal     </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="4"        class="inserted-radio" type="radio" name="radio_" id="radio-4" /> Selten        </span><br />\
                <span onclick="checkClosest(this)">\
                    <input value="5" class="inserted-radio" type="radio" name="radio_" id="radio-5" /> Nie </span>  \
              </div>'
            );
        }
        document.querySelectorAll("input[id^='answer']").forEach( function(inputElem){
          var currID = inputElem.id.substr(6);
          inputElem.parentElement.querySelector("div.list-question-select").querySelectorAll('input').forEach( function(radioNeedsName){
            radioNeedsName.name += currID;
            // Łapiemy zmiany i uzupełniamy oryginalny element
            radioNeedsName.addEventListener("change", function(){
              inputElem.value = event.target.value;
            })
          })
        });
      
        // Clean-up styles
        $('input.inserted-radio').addClass('big-radio');
        $('.list-question-select').find('span').addClass('clickable-span')
        $('.with-select input:text', thisQuestion).css({
            'position': 'absolute',
            'left': '-9999em'
        });
    });
</script>

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, rolasj

Please Log in to join the conversation.

  • rolasj
  • rolasj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #225298 by rolasj
Replied by rolasj on topic dual scale to multiple scale
Thanks!

i wanted to use an array (number)
with dropdown,
but I needed text instead of numbers
because a lot of radiobuttons, indeed

thanks for the decision

Rolandas

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 10 months ago #225315 by tammo
Replied by tammo on topic dual scale to multiple scale
This will be absolute horror for people trying to fill in on a small screen (mobile phone).


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: DenisChenu, holch

Please Log in to join the conversation.

  • rolasj
  • rolasj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #225319 by rolasj
Replied by rolasj on topic dual scale to multiple scale
the survey will only be completed by people with large screens, no phones :)

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 years 10 months ago #225320 by DenisChenu
Replied by DenisChenu on topic dual scale to multiple scale

This will be absolute horror for people trying to fill in on a small screen (mobile phone).
 
Even on big screen …

Webpage is not spreadsheet …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #225342 by holch
Replied by holch on topic dual scale to multiple scale
I agree, this is a typical case of trying to transfer a paper questionnaire 1 to 1 into online, which is usually never a good idea.

Even on a "large screen" (where does large screen start) this will be a nightmare to fill out, I think.

But Joffm has shown you some ways on how to approach this anyway.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • rolasj
  • rolasj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #225343 by rolasj
Replied by rolasj on topic dual scale to multiple scale
Yes, bad idea is to transfer from paper to screen

very good idea are vertical radio, but this not work for me...
dropdown correct, but there twice action required compared to radio

Rolandas

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #225358 by Joffm
Replied by Joffm on topic dual scale to multiple scale

Yes, bad idea is to transfer from paper to screen

Exactly.
Always the best, revise your questionnaire, try to split the question.

Read this.
 

File Attachment:

File Name: surveyfriendly1.zip
File Size:977 KB

 

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

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
2 years 10 months ago #225360 by DenisChenu
Replied by DenisChenu on topic dual scale to multiple scale
@holch and @Joffm : want to construct a "Good online survey" checklist ?
checklists.opquast.com/en/web-quality-as...=links&theme=content

:DDDD

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose