- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
inserting text between multiple choice subquestions
- brittCL
- Topic Author
- Offline
- New Member
Less
More
11 years 11 months ago #79074
by brittCL
inserting text between multiple choice subquestions was created 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!
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
- Offline
- Official LimeSurvey Partner
11 years 11 months ago #79077
by Mazi
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
Replied by Mazi on topic inserting text between multiple choice subquestions
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
11 years 11 months ago #79081
by brittCL
Replied by brittCL on topic inserting text between multiple choice subquestions
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.
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
- Offline
- Official LimeSurvey Partner
11 years 11 months ago - 11 years 10 months ago #79082
by Mazi
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
Replied by Mazi on topic inserting text between multiple choice subquestions
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:
Please mind that you have to adjust IDs when making use of this sample code.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
11 years 11 months ago #79084
by brittCL
Replied by brittCL on topic inserting text between multiple choice subquestions
This worked like a charm! Exactly what I was looking for.
Thank you Mazi! Karma +1
Thank you Mazi! Karma +1
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
11 years 11 months ago #79099
by Mazi
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
Replied by Mazi on topic inserting text between multiple choice subquestions
You're welcomebrittCL wrote: This worked like a charm! Exactly what I was looking for.
Thank you Mazi! Karma +1
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.
- adishardis
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
11 years 1 month ago #92296
by adishardis
Replied by adishardis on topic inserting text between multiple choice subquestions
Is it possible to have have them in two column side by side?
Cars Pets
Ford Cat
Chrystler dog
BMW
Thanks
/Adam
Cars Pets
Ford Cat
Chrystler dog
BMW
Thanks
/Adam
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
11 years 1 month ago #92394
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic inserting text between multiple choice subquestions
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.