Welcome to the LimeSurvey Community Forum

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

inserting text between multiple choice subquestions

  • brittCL
  • brittCL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago #79074 by brittCL
Hi guys,

Searched all over internet including this forum but nothing helps. Anyone could help me with the following?

I have a multiple choice question with some subquestions. I need to insert some text (titles) between some of these subquestions like :

Title
SQ001
SQ002
SQ003
Title
SQ004
SQ005
Title
SQ006
SQ007
SQ008

I tried adding those titles as subquestions but then they obviously get a clickable checkbox next to them, which makes them seem like another subquestion. From what I read, some items can be hidden with javascript so hiding their checkboxes would be a solution for me. I don't know if this approach is more/less complicated than inserting text.

Hopefully this can be solved without too much technical knowledge (know nothing about javascript)

Thank you very much for your time!
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 11 months ago #79077 by Mazi
If you want to add such headlines in between a multiple chocie question you can e.g. add a HTML line break after the previous answer text and then add the headline, example
myanswertext_for_SQ003 <br /> Title

Alternativle you set the titles as subquestions and activate a sample survey and post the link here and I can have a look how you could hide the checkboxes.

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.
  • brittCL
  • brittCL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago #79081 by brittCL
That's brilliant!! And fast too :) Tyvm Mazi, great tip.

This works for title 2 and 3 but the first one is a problem since there is no previous subquestion :(

I'm not able to activate the survey (no permission for that) so I can't post the link :( But the question is nothing fancy, just a regular multiple choice question so probably a general technique for hiding the checkboxes could be used.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 11 months ago - 11 years 10 months ago #79082 by Mazi
Here comes a link to a sample survey

This is how it will look like:


The checkboxes are hidden using Javascript. Have a look at this blog post at www.limesurvey-consulting.com for more details: How to use JavaScript at a Limesurvey template or survey

The Javascript used for this question:
Code:
<script type="text/javascript" charset="utf-8">
 
$(document).ready(function() {
 
  $('#answer57884X20X272SQ001').hide();
  $('#answer57884X20X272SQ005').hide();
});
</script>

Please mind that you have to adjust IDs when making use of this sample code.

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
Attachments:
Last edit: 11 years 10 months ago by Mazi.
The topic has been locked.
  • brittCL
  • brittCL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago #79084 by brittCL
This worked like a charm! Exactly what I was looking for.
Thank you Mazi! Karma +1 ;)
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 11 months ago #79099 by Mazi

brittCL wrote: This worked like a charm! Exactly what I was looking for.
Thank you Mazi! Karma +1 ;)

You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to give Limesurvey a future .
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.
More
11 years 1 month ago #92296 by adishardis
Is it possible to have have them in two column side by side?

Cars Pets
Ford Cat
Chrystler dog
BMW

Thanks
/Adam
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 1 month ago #92394 by tpartner
There is a "Display columns" advanced setting - docs.limesurvey.org/Question+type+-+Mult...rvey#Display_columns

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: adishardis
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose