Text box with don't know checkbox

More
10 months 12 hours ago #187283 by mintau
A fairly common question structure that we use in research is to present a text box (long free text), but with a checkbox option for 'nothing' or 'don't know' etc. (it needs to be a checkbox rather than a radio button so it can be unselected if they choose to write in text after all)

It would appear that limesurvey doesn't have this within its UI functionality, so I was wondering if anyone had developed javascript to allow these 2 question types to be combined.



Professional Version 3.17.7

Also, I have spent hours searching the manual pages and the internet trying to find a simple table of the javascript syntax for each question type. Does this exist somewhere?
Attachments:

Please Log in to join the conversation.

LimeSurvey Partners
More
10 months 11 hours ago #187284 by DenisChenu
Sometimes i use 2 question for this : on for text and one with one checkbox.

It's clean and clear

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
10 months 7 hours ago - 10 months 7 hours ago #187294 by Joffm
And there is a plugin "checkBoxForText"





Joffm


Oh, I didn't see, you're on the Pro Version.

Then the best: Two questions and set the margin and padding of the question container to "0".



Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 10 months 7 hours ago by Joffm.

Please Log in to join the conversation.

More
9 months 4 weeks ago #187311 by mintau
Thanks for the replies. Is there some javascript I can use to make the 2 questions merge together, so they appear in the same question box?

Please Log in to join the conversation.

More
9 months 4 weeks ago #187320 by DenisChenu
No need javascript

Use CSS class
With vanilla in custom.css
.disable-irrelevant.ls-irrelevant.ls-hidden{display:block;}
.disable-irrelevant.ls-irrelevant .form-control{background-color: #eee;cursor: not-allowed;}
.no-question{border-top:0;}
.no-question .question-title-container{display:none;}
.no-question .question-valid-container{display:none;}
.no-bottom{border-bottom:0;margin-bottom:0;}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:
The following user(s) said Thank You: mintau

Please Log in to join the conversation.

More
9 months 2 weeks ago #187668 by mintau
Thank you, this worked!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now