Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : inserting text between multiple choice subquestions

inserting text between multiple choice subquestions il y a 2 ans 6 mois #79074

  • brittCL
  • Portrait de brittCL
  • Hors ligne
  • Fresh Lemon
  • Messages : 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!
L'administrateur a désactivé l'accès en écriture pour le public.

Re: inserting text between multiple choice subquestions il y a 2 ans 6 mois #79077

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5331
  • Remerciements reçus 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'"
L'administrateur a désactivé l'accès en écriture pour le public.

Re: inserting text between multiple choice subquestions il y a 2 ans 6 mois #79081

  • brittCL
  • Portrait de brittCL
  • Hors ligne
  • Fresh Lemon
  • Messages : 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.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: inserting text between multiple choice subquestions il y a 2 ans 6 mois #79082

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5331
  • Remerciements reçus 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'"
Dernière édition: il y a 2 ans 5 mois par Mazi.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: inserting text between multiple choice subquestions il y a 2 ans 6 mois #79084

  • brittCL
  • Portrait de brittCL
  • Hors ligne
  • Fresh Lemon
  • Messages : 3
  • Karma: 0
This worked like a charm! Exactly what I was looking for.
Thank you Mazi! Karma +1 ;)
L'administrateur a désactivé l'accès en écriture pour le public.

Re: inserting text between multiple choice subquestions il y a 2 ans 6 mois #79099

  • Mazi
  • Portrait de Mazi
  • Hors ligne
  • LimeSurvey Team
  • Messages : 5331
  • Remerciements reçus 296
  • Karma: 249
brittCL écrit:
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'"
L'administrateur a désactivé l'accès en écriture pour le public.

Re: inserting text between multiple choice subquestions il y a 1 an 8 mois #92296

  • adishardis
  • Portrait de adishardis
  • Hors ligne
  • Senior Lime
  • Messages : 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
L'administrateur a désactivé l'accès en écriture pour le public.

Re: inserting text between multiple choice subquestions il y a 1 an 8 mois #92394

  • tpartner
  • Portrait de tpartner
  • En ligne
  • LimeSurvey Team
  • Messages : 4276
  • Remerciements reçus 806
  • Karma: 369
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.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: adishardis
Modérateurs: ITEd
Temps de génération de la page : 0.155 secondes
Donation Image