- Posts: 30
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Add a text box beside answer option
- LisaTW
- Topic Author
- Offline
- Junior Member
Less
More
2 years 11 months ago #215151
by LisaTW
Add a text box beside answer option was created by LisaTW
Hi there,
I'm designing a single choice question. there are two answer options, one answer option needs to add a text box beside it.
Could I do this in limesurvey? (please see the picture)
Lisa
I'm designing a single choice question. there are two answer options, one answer option needs to add a text box beside it.
Could I do this in limesurvey? (please see the picture)
Lisa
Attachments:
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 965
- Thank you received: 218
2 years 11 months ago #215154
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Add a text box beside answer option
You can define a single choice question with one option: NO. And an "other" option where you replace the word other with "Yes".
See image and attached .lss file.
There are also ways of changing the position of the "other" option. That has been described here on the forum.
Personally I would just define a long text question where I would ask the question that you ask. Not with Yes/No.
See image and attached .lss file.
There are also ways of changing the position of the "other" option. That has been described here on the forum.
Personally I would just define a long text question where I would ask the question that you ask. Not with Yes/No.
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Attachments:
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 965
- Thank you received: 218
2 years 11 months ago #215155
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Add a text box beside answer option
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- LisaTW
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
2 years 11 months ago #215160
by LisaTW
Replied by LisaTW on topic Add a text box beside answer option
Hi Tammo,
Thank you for your quick reply.
I have seen the lss file, it's exactly what I want. But I would like to put "Yes" option ahead of "no" option to encourage participant to answer.
"And an "other" option where you replace the word other with "Yes""
Could you please tell me how to replace "other" with "yes"?
Lisa
Thank you for your quick reply.
I have seen the lss file, it's exactly what I want. But I would like to put "Yes" option ahead of "no" option to encourage participant to answer.
"And an "other" option where you replace the word other with "Yes""
Could you please tell me how to replace "other" with "yes"?
Lisa
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 965
- Thank you received: 218
2 years 11 months ago #215165
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Add a text box beside answer option
In the display options of the radio button question, you can rename the "Other" option.
There have been several questions about repositioning the other option, but I am afraid I do not have the time now to look that up for you.
I am pretty sure it must be in questions on the forum that were answered by Tpartner (the javascript guru) of Joffm (the most helpful guy in multiple languages)
There is also a plugin for changing the position of the other option:
survey-consulting.com/product/limesurvey...ange-other-position/
Tammo
There have been several questions about repositioning the other option, but I am afraid I do not have the time now to look that up for you.
I am pretty sure it must be in questions on the forum that were answered by Tpartner (the javascript guru) of Joffm (the most helpful guy in multiple languages)
There is also a plugin for changing the position of the other option:
survey-consulting.com/product/limesurvey...ange-other-position/
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
2 years 11 months ago - 2 years 11 months ago #215166
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Add a text box beside answer option
Hi,
though you didn't address me:
You have to use another small workaround
This you finf here
[url] manual.limesurvey.org/Workarounds:_Manip...meSurvey_version_3.x :[/url]
fixedAnswer = 1
Remember: The code of "No" shall be "1", and "Yes" is still the "Other" option, coded with "-oth-"
Joffm
@Tammo
Bedankt voor dit compliment.
though you didn't address me:
You have to use another small workaround
This you finf here
[url] manual.limesurvey.org/Workarounds:_Manip...meSurvey_version_3.x :[/url]
fixedAnswer = 1
Remember: The code of "No" shall be "1", and "Yes" is still the "Other" option, coded with "-oth-"
Joffm
@Tammo
Bedankt voor dit compliment.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 11 months ago by Joffm.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
2 years 11 months ago #215170
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Add a text box beside answer option
Though for your needs this is much shorter.
Code:
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Move "Other" to the first position var otherItem = $('#question{QID} li[id$="X{QID}other"]'); otherItem.prependTo(otherItem.parent()); }); </script>
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- LisaTW
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
2 years 11 months ago - 2 years 11 months ago #215174
by LisaTW
Replied by LisaTW on topic Add a text box beside answer option
Hi,
Thank you for your quick reply!
Lisa
Thank you for your quick reply!
Lisa
Last edit: 2 years 11 months ago by LisaTW.
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 965
- Thank you received: 218
2 years 11 months ago #215176
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Add a text box beside answer option
What I sent you was a single choice question.
Tammo
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- LisaTW
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
2 years 11 months ago #215177
by LisaTW
Replied by LisaTW on topic Add a text box beside answer option
Sorry I made a mistake, and thank you for your help!
Lisa
Lisa
The topic has been locked.
- LisaTW
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 0
2 years 11 months ago #215178
by LisaTW
Replied by LisaTW on topic Add a text box beside answer option
Hi Joffm and Tammo,
Thank you for your kind help!
It works perfectly! ! !
Lisa
Thank you for your kind help!
It works perfectly! ! !
Lisa
The topic has been locked.