Welcome, Guest
Username: Password: Remember me

TOPIC: inserting text between multiple choice subquestions

inserting text between multiple choice subquestions 2 years 6 months ago #79074

  • brittCL
  • brittCL's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
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 administrator has disabled public write access.

Re: inserting text between multiple choice subquestions 2 years 6 months ago #79077

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: inserting text between multiple choice subquestions 2 years 6 months ago #79081

  • brittCL
  • brittCL's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
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 administrator has disabled public write access.

Re: inserting text between multiple choice subquestions 2 years 6 months ago #79082

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
Here comes a link to a sample survey

This is how it will look like:
mc.png


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:
<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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
Last Edit: 2 years 5 months ago by Mazi.
The administrator has disabled public write access.

Re: inserting text between multiple choice subquestions 2 years 6 months ago #79084

  • brittCL
  • brittCL's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
This worked like a charm! Exactly what I was looking for.
Thank you Mazi! Karma +1 ;)
The administrator has disabled public write access.

Re: inserting text between multiple choice subquestions 2 years 6 months ago #79099

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: inserting text between multiple choice subquestions 1 year 8 months ago #92296

  • adishardis
  • adishardis's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 58
  • Karma: 0
Is it possible to have have them in two column side by side?

Cars Pets
Ford Cat
Chrystler dog
BMW

Thanks
/Adam
The administrator has disabled public write access.

Re: inserting text between multiple choice subquestions 1 year 8 months ago #92394

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4270
  • Thank you received: 804
  • Karma: 368
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: adishardis
Moderators: ITEd
Time to create page: 0.126 seconds
Donation Image