Welcome to the LimeSurvey Community Forum

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

array: semantic differential: label after the second to last radio button

  • Jan897
  • Jan897's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago - 3 years 11 months ago #198876 by Jan897
Is there any way to add a label before first radio button and a label after the second to last radio button ? Unfortunately I do not know any Java.


What I´m trying to do is a semantic differential with a "don´t know" option at the end.

one row:
very unpleasant - 10 radio buttons with 1 to 10 - very pleasant - 1 radio button with Don´t know

I have already tried to change the "no answer option" to " Don´t know" and it works, but then the "no answer" or " don´t know" option is preselected and I think that is very suggestive. Another Problem is that this only works for non mandatory questions and I don´t want people to skip the question.
Last edit: 3 years 11 months ago by Jan897.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #198878 by tpartner
Custom question theme - Adjustable Semantic Differential Array - github.com/tpartner/LimeSurvey-Adjustabl...c-Differential-Array


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: Jan897
The topic has been locked.
  • Jan897
  • Jan897's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago #198880 by Jan897
Thank you so much for the quick reply !
But I can´t add question themes because I am not an admin.
I could email my professor, but it would probably take ages for him to reply and to implement the question in the Limesurvey installation I am using.

Is there any other way?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #198883 by Joffm
Hi,
you can use the script that Tony provided before he developped the question theme.
Code:
<script type="text/javascript" charset="utf-8">
 
  $(document).on('ready pjax:scriptcomplete',function(){
 
    // Define this question
    var thisQuestion = $('#question{QID}');
 
 
    // Move the last column
    $('col:nth-last-child(2)', thisQuestion).before($('col:last-child', thisQuestion));
 
    $('table.subquestion-list tr', thisQuestion).each(function(i) {
      $('> *:nth-last-child(2)', this).before($('> *:last-child', this));
    });
    });
</script>



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Jan897
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose