Welcome to the LimeSurvey Community Forum

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

Mixed questions ?

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago #224563 by eniisula
Mixed questions ? was created by eniisula
LimeSurvey version: url=https://survey.datacentrum.al/index.php/questionAdministration/view?surveyid=864321&gid=22&qid=750#modalSystemInformation]Version 5.1.13+210923[/url
==================
I want to add two or more types of 'question types' for one main question. For example I want multiple numerical input and also one answer to be check type. So the participant does not have to input numbers but just check that answer and move to next question. 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #224566 by Joffm
Replied by Joffm on topic Mixed questions ?
Hi,
it would be very kind, if you could show us a bit more of your idea.
Like a small sketch or something.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago - 3 years 4 months ago #224569 by eniisula
Replied by eniisula on topic Mixed questions ?
  Sorry for being vague. Here I have attached an image. The last one I want it to check it and not have an input field for it. I have started using limesurvey these last couple days so I am sorry for being vague and not being able to explain better.
Last edit: 3 years 4 months ago by eniisula. Reason: Img
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #224571 by Joffm
Replied by Joffm on topic Mixed questions ?
Hm,
what is entered here?
The years the visited the school? or what.

Then I should recommend a different question type, like "multiple with comment"
And as I suppose this last option is something like "None of them/Refused".
So it is an exclusive option.
There are ways to hide the comment field for some subquestions, to add a suffix and to reduce the length of the comment.

May look like this
 

This is done by inserting this javascript snippet into the question text (in sourcecode mode)
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() { 
        var thisQuestion = $('#question{QID}');
        // Remove some text inputs
        $('.checkbox-text-item:eq(6) .comment-item', thisQuestion).remove();
    });
</script>
<script type="text/javascript" charset="utf-8">
    $(document).on('ready pjax:scriptcomplete',function(){
        // Insert comment suffix
        var suffixText = '%';
        $('#question{QID} .comment-item').append('<span class="comment-suffix">'+suffixText+'</span>');
    });
</script>

And a bit css
Code:
<style type="text/css">
  #question{QID} input[type="text"] {
    width:8%;
     min-width: 50px;
     display: inline-block;
  }
</style>


I am not sure if you are allowed to insert scripts, seeing the address "datacentrum.al". Where exactly is LimeSurvey hosted?

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: eniisula
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #224572 by Joffm
Replied by Joffm on topic Mixed questions ?
I had a look.
So, if you are a member of this research institute, you should have the rights to do it.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago #224577 by eniisula
Replied by eniisula on topic Mixed questions ?
Thank you, I'll check this out!
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago - 3 years 4 months ago #224786 by eniisula
Replied by eniisula on topic Mixed questions ?
I tried implementing the script you provided me but it seems I can't get rid of the comment field for my last option. Also I can't add the % sign. When I replace QID for the first script should I just replace it with 6 because that's my ID for my last option? And what about the second script? Which QID should I implement? Same question for the css.
I am sorry for all these questions but I am trying to get rid of my confusion and start understanding limesurvey better.

Thank you in advance for all your feedback!
Last edit: 3 years 4 months ago by eniisula.
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago #224791 by eniisula
Replied by eniisula on topic Mixed questions ?
My question code is: G03Q24
While the subquestions have codes from 1-6.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #224793 by tpartner
Replied by tpartner on topic Mixed questions ?
Do not replace {QID}. That will be replaced automatically.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago #224795 by eniisula
Replied by eniisula on topic Mixed questions ?
I understand now. Thank you!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose