Welcome to the LimeSurvey Community Forum

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

Dual Scale Array, getting rid of one side for one question

More
6 years 5 months ago #159172 by DerBibber17
Thank you so much, I would hug you if I could :) Finally something worked!

May I ask another question? I would also like to add a row with an "other"-option and a short textfield to some questions (arrays and multiflex arrays). Is that possible?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159173 by Joffm
Hello, Bibber,
please do not add new question to a topic.

Open a new thread. It is easier for other users to find something.
How often do we read "I searched, but didn't find."

Okay,
Depends on the structure of your survey: (all on one page, group by group or question by question)

I did these in my last survey like this.
Though it is asked question by question I did it "group by group" (each group one question)

Only in this group I placed the array and underneath the question with the "Other"

Like this:


You know, I prefer the "out of the box" solutions, because most of the time there is no time to wait for an answer in the forum, though this forum is one of the best in quality and response time.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
6 years 5 months ago #159174 by DerBibber17
Of course, you're right :)
I'm going to ask this question in a new thread. My structure is question by question, so the solutions a I found dont work.
The topic has been locked.
More
6 years 5 months ago #159368 by DerBibber17
I'd have one more question about this script. How would I have to change it, if i want to use it in a radio (list) question to insert the same subheadings?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159369 by Joffm
Hello, Bibber,
read this - Tony's last post.
www.limesurvey.org/forum/can-i-do-this-w...e-in-multiple-choice

In the script:
Change "checkbox" to "radio"
Change "question-item" to "answer-item.

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner, DerBibber17
The topic has been locked.
More
6 years 5 months ago #159370 by DerBibber17
I just recognized it's not working because i don't have the rights to edit template.css (University account).

Maybe it's possible to change the script you provided me for the arrays slightly so that I could just add some rows for my subheadings?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159372 by Joffm
Hello, Bibber,
I just entered these few lines of code into the question text.
Code:
Question text
<script charset="utf-8" type="text/javascript">
  $(document).ready(function() {
    $( '#question{QID} .answer-item:eq(0)').addClass('hide-pseudo-elements').find('input.radio').remove();
    $( '#question{QID} .answer-item:eq(4)').addClass('hide-pseudo-elements').find('input.radio').remove();
  });
</script>
<style type="text/css">.hide-pseudo-elements label::before,
.hide-pseudo-elements label::after {
  display: none;
}
 
.hide-pseudo-elements .label-text {
  margin-left: -20px;
}
</style>

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
6 years 5 months ago #159375 by DerBibber17
Awesome, thank you so much Joffm :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose