Welcome to the LimeSurvey Community Forum

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

Adding a prefer not to answer option with multiple choice with text

  • hannia.nawaz
  • hannia.nawaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #267373 by hannia.nawaz
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.6.5
Own server or LimeSurvey hosting: Lime Survey hosting
Survey theme/template: fruity
==================
Hi, 
I am trying to add a prefer not to answer option with my multiple choice with text options as attached. I added an open next question after to add the prefer not to answer option. I removed the select all that apply option for the 'prefer not to answer' by using the following code in the source of the question: 

<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
      $('#vmsg_{QID}_default').html('<span class');
    });
  </script>

But now I want to remove the spacing between the text answers and the prefer not to answer option to make it look like they're all part of a single question and I am not able to do that. Is there a way to remove the spacing just for this question?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago #267383 by holch
Never provide LSG or LSQ files (if not specifically asked for by the forum). Use LSS files instead.

Reason: LSG and LSQ files require that the helpers in the forum create a survey to import them into. As LSG and LSQ files are language dependent, we also need to "guess" the base language used, because the newly created survey needs to have the same base language.

So help us to help you and provide us with an LSS file. This might be a bit more work on your side, but it helps the helpers.

And no, we do not want to see your whole survey. We just want to see an example of your survey. So make a copy of your survey, delete everything that is not necessary for the issue described, if necessary "anonymize" the texts in your survey and then export this copy as LSS and upload it here.

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.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago - 3 months 2 weeks ago #267385 by Joffm
Hi,
please neither "lsq" nor "lsg" exports, only lss.

So, without seeing your questions I should say.
Use the css classes "no-bottom" and "no-question" to merge the two questions (and "disable-irrelevant")
[url] forums.limesurvey.org/forum/german-forum...en-teilfragen#243958 [/url]


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 months 2 weeks ago by Joffm.

Please Log in to join the conversation.

  • hannia.nawaz
  • hannia.nawaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #267387 by hannia.nawaz
Sorry about that. I have attached the lss file. I couldnt figure out how to do the css classes you suggested. I am extremely new to coding and have no idea about it. I have attached the lss file so it would be extremely helpful if you could guide me a bit as to how I can do it.  

File Attachment:

File Name: limesurvey...7162.lss
File Size:41 KB

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 2 weeks ago #267394 by Joffm
Hi,

insert this in the question text (source code mode)
Code:
<style>
.no-question { border-top:0; }
.no-question .question-title-container { display:none; }
.no-question .question-valid-container { display:none; }
.no-bottom { border-bottom:0;margin-bottom:0; }
.no-question .answer-container {
    padding-top: 0em;
    padding-bottom: 0.5em;
}
.no-bottom .answer-container {
    padding-bottom: 0em;
}
</style>

and add the css classes to the questions

1.question "no-bottom"
2. question "no-question"

Joffm

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

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
3 months 2 weeks ago #267395 by tammo
Would this help?

Prefer not to answer (respondage.nl)

 

File Attachment:

File Name: prefernottoanswer.lss
File Size:37 KB


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

  • hannia.nawaz
  • hannia.nawaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 weeks ago #267396 by hannia.nawaz
That worked perfectly. Thank you so much.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose