Welcome to the LimeSurvey Community Forum

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

Create a likert scale but move the "not applicable" option to the right

  • shirleyorigami
  • shirleyorigami's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago - 13 years 2 months ago #55157 by shirleyorigami
Hi guys,

I would like my participants to rate a statement with five possible answers:

Example: Never - rarely - sometimes - often - always

I used an "array" to create these questions.

However, I want to add another option "not applicable"

Example: Never - rarely - sometimes - often - always - not applicable.

Is it possible to create a greater distance in the questiontable between the first five items and the sixth item, so that participants view "not applicable" as a distinct option?

Example: Never - rarely - sometimes - often - always
not applicable.
Last edit: 13 years 2 months ago by shirleyorigami.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
13 years 2 months ago - 13 years 2 months ago #55167 by tpartner
You will need to insert blank cells in the table.

Set up your survey to use JavaScript and place the following script in the source of the array question or the group description. Replace "QQ" (line 5) with the array question ID.
Code:
<script type="text/javascript" charset="utf-8">
 
    $(document).ready(function() {
 
    var qID = QQ;
 
    // Reset column widths
    $('#question'+qID+' col').attr('width', 'auto');
 
    // Insert new column
    $('<th class="spacerCell"></th>').insertBefore('#question'+qID+' table.question thead tr th:last');
    $('#question'+qID+' table.question tbody tr').each(function(i) {
      $('td:last', this).addClass('lastCell');
    });
    $('<td class="spacerCell"></td>').insertBefore('.lastCell');
 
 
  });
 
</script>

Then, add the following to the end of template.css to set styles for your new column and the sub-question widths. Replace "QQ" with the array question ID.
Code:
#questionQQ .spacerCell {
  background-color: #FFFFFF;
  width: 5px;
}
 
#questionQQ tbody th {
  width: 15%;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 13 years 2 months ago by tpartner.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
13 years 2 months ago #55168 by holch
Excellent solution by Tpartner again.

Thumbs up!

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • shirleyorigami
  • shirleyorigami's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #55202 by shirleyorigami
Thank you very much! I will try it out.

BTW, I receive a lot of 500 errors when I look at the LimeSurvey website.

For instance, this link gives a 500 error as well:

docs.limesurvey.org/tiki-index.php?page=..._etc._in_LimeSurvey_

Error 500!

/tiki-index.php
Internal Server Error!
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
13 years 2 months ago #55214 by Mazi
This link work fine for me: docs.limesurvey.org/tiki-index.php?page=..._etc._in_LimeSurvey_

Though we have updated our wiki software recently and there might be some problems. Please list them all here so we can fix them.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • shirleyorigami
  • shirleyorigami's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #55216 by shirleyorigami
docs.limesurvey.org/
I get the same 500 error over here.

Basically, I cannot access your wiki; but I did a Google search and visited the cached version.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
13 years 2 months ago #55222 by Mazi
It works fine here.Please try clearing your browser cache.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The following user(s) said Thank You: shirleyorigami
The topic has been locked.
  • shirleyorigami
  • shirleyorigami's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #55227 by shirleyorigami
Thanks, that was indeed the problem. Other browsers do show the website.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
13 years 2 months ago #55317 by Mazi
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • shirleyorigami
  • shirleyorigami's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #56006 by shirleyorigami
Is there another option without enabling Javascript? For instance, by changing the template?
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
13 years 1 month ago #56011 by Mazi
This can also be done by editing the template.css of the template you are using. Check the CSS that is embedded at tpartner's javascript. It should be possible to extract it and assign it to either the whole question type or just a single (or several) question by using the question ID.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
13 years 1 month ago #56018 by tpartner
Yoy will need to use JavaScript to insert the extra column. I have already included rules to be added to template.css.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose