- Posts: 4
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Increase box size of "other" option in multiple response
- bwoo5
- Topic Author
- Offline
- New Member
Less
More
11 years 5 months ago #87965
by bwoo5
Increase box size of "other" option in multiple response was created by bwoo5
I have a multiple response question and have selected to show the "other" option. How can increase the width of the text box(input box) associated with the "other" option?
thanks!
thanks!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
11 years 5 months ago #88065
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 Increase box size of "other" option in multiple response
Add this to the end of template.css (tested on the default template):
Code:
.multiple-opt .answer li input.text { width: 300px; }
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: xbonize
The topic has been locked.
- amun
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
7 years 3 months ago #147125
by amun
Replied by amun on topic Increase box size of "other" option in multiple response
I wonder, if additionaly there might be an opportunity to 1) increase the numbers of lines of the "others"-box and 2) implement a scroll bar for the text box.
many thanks!
My version: limesurvey 2.06
many thanks!
My version: limesurvey 2.06
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
7 years 3 months ago #147149
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 Increase box size of "other" option in multiple response
No, the "Other" field is a <input type="text"> element and therefor restricted to one line.
If you need multi-line, add a following long text question with relevance to show it when "Other" is checked.
If you need multi-line, add a following long text question with relevance to show it when "Other" is checked.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- padbrest
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
5 years 11 months ago #167600
by padbrest
Replied by padbrest on topic Increase box size of "other" option in multiple response
template.css not found. Is there another CSS filename (version 3.7) ?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 11 months ago #167622
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 Increase box size of "other" option in multiple response
The file is now custom.css
But you will also need to modify the CSS rule:
But you will also need to modify the CSS rule:
Code:
.multiple-opt input[type="text"].form-control { width: 300px; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: tomekusek
The topic has been locked.
- Zouloc
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
5 years 7 months ago #174075
by Zouloc
Replied by Zouloc on topic Increase box size of "other" option in multiple response
Hi,
Thanks for helping but I'm unable to make it work...
I added these lines to the custom.css of my active theme but there's no change... Did I make something wrong? Did I miss an option?
Thank you in advance.
Thanks for helping but I'm unable to make it work...
I added these lines to the custom.css of my active theme but there's no change... Did I make something wrong? Did I miss an option?
Thank you in advance.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 7 months ago #174090
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 Increase box size of "other" option in multiple response
What LimeSurvey version? Did you reset the theme?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Zouloc
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
5 years 7 months ago - 5 years 7 months ago #174100
by Zouloc
Replied by Zouloc on topic Increase box size of "other" option in multiple response
LimeSurvey version is 3.14.8.
I just copied the default theme to change its custom.css then I activated it.
How do you reset a theme?
Thanks for the fast reply!
I just copied the default theme to change its custom.css then I activated it.
How do you reset a theme?
Thanks for the fast reply!
Last edit: 5 years 7 months ago by Zouloc.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 7 months ago - 5 years 7 months ago #174115
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 Increase box size of "other" option in multiple response
There is no "default" theme in 3.x.
This works for me in an extended version of the 3.15.9 vanilla theme:
You can reset the theme in the themes list.
You can also clear the tmp assets in Configuration --> Global settings --> General.
You might also try setting debug to 1 in /application/config/config.php. This will bypass the assets manager so all CSS, etc. is loaded directly from the theme directory.
This works for me in an extended version of the 3.15.9 vanilla theme:
Code:
.multiple-opt input[type="text"].form-control { width: 300px; }
You can reset the theme in the themes list.
You can also clear the tmp assets in Configuration --> Global settings --> General.
You might also try setting debug to 1 in /application/config/config.php. This will bypass the assets manager so all CSS, etc. is loaded directly from the theme directory.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 5 years 7 months ago by tpartner.
The following user(s) said Thank You: Zouloc
The topic has been locked.
- Zouloc
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
5 years 7 months ago #174116
by Zouloc
Replied by Zouloc on topic Increase box size of "other" option in multiple response
I did all of this, but still not working... My theme is based on fruity, I'll try with Vanilla.
I attached some screenshots, tell me if you need more information.
Sorry for the inconvenience.
I attached some screenshots, tell me if you need more information.
Sorry for the inconvenience.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 7 months ago #174159
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 Increase box size of "other" option in multiple response
Can you attach a link to a test survey?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.