- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Text box with don't know checkbox
- mintau
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago #187283
by mintau
Text box with don't know checkbox was created 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?
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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 7 months ago #187284
by DenisChenu
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 .
I don't answer to private message.
Replied by DenisChenu on topic Text box with don't know checkbox
Sometimes i use 2 question for this : on for text and one with one checkbox.
It's clean and clear
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 .
I don't answer to private message.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12789
- Thank you received: 3940
4 years 7 months ago - 4 years 7 months ago #187294
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Text box with don't know checkbox
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".
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: 4 years 7 months ago by Joffm.
The topic has been locked.
- mintau
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
4 years 7 months ago #187311
by mintau
Replied by mintau on topic Text box with don't know checkbox
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?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 7 months ago #187320
by DenisChenu
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 .
I don't answer to private message.
Replied by DenisChenu on topic Text box with don't know checkbox
No need javascript
Use CSS class
With vanilla in custom.css
Use CSS class
With vanilla in custom.css
Code:
.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 .
I don't answer to private message.
Attachments:
The following user(s) said Thank You: mintau
The topic has been locked.
- mintau
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
4 years 7 months ago #187668
by mintau
Replied by mintau on topic Text box with don't know checkbox
Thank you, this worked!
The topic has been locked.