Increase box size of "other" option in multiple response

More
5 years 11 months ago #87965 by bwoo5
bwoo5 created the topic: Increase box size of "other" option in multiple response
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!

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago #88065 by tpartner
tpartner replied the topic: Increase box size of "other" option in multiple response
Add this to the end of template.css (tested on the default template):
.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

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #147125 by amun
amun replied the 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

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #147149 by tpartner
tpartner replied the 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.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
5 months 4 weeks ago #167600 by padbrest
padbrest replied the topic: Increase box size of "other" option in multiple response
template.css not found. Is there another CSS filename (version 3.7) ?

Please Log in or Create an account to join the conversation.

More
5 months 4 weeks ago #167622 by tpartner
tpartner replied the 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:

.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:

Please Log in or Create an account to join the conversation.

More
1 month 5 hours ago #174075 by Zouloc
Zouloc replied the 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.

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago #174090 by tpartner
tpartner replied the 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.

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago - 4 weeks 1 day ago #174100 by Zouloc
Zouloc replied the 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! :)
Last Edit: 4 weeks 1 day ago by Zouloc.

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago - 4 weeks 1 day ago #174115 by tpartner
tpartner replied the 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:

.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: 4 weeks 1 day ago by tpartner.
The following user(s) said Thank You: Zouloc

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago #174116 by Zouloc
Zouloc replied the 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.
Attachments:

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago #174159 by tpartner
tpartner replied the 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.

Please Log in or Create an account to join the conversation.

More
4 weeks 10 hours ago #174187 by Zouloc
Zouloc replied the topic: Increase box size of "other" option in multiple response
Ok I found the problem! My surveys were created under fruity theme, and when I set my extends_fruity as default theme, it didn't apply to old surveys automatically, I had to apply it for old survey.

Thanks for helping and sorry for the inconvenience!

Please Log in or Create an account to join the conversation.

More
4 weeks 10 hours ago #174188 by LouisGac
LouisGac replied the topic: Increase box size of "other" option in multiple response

Zouloc wrote: Ok I found the problem! My surveys were created under fruity theme, and when I set my extends_fruity as default theme, it didn't apply to old surveys automatically, I had to apply it for old survey.

Thanks for helping and sorry for the inconvenience!


:laugh:

it's the third time I see this mistake

Please Log in or Create an account to join the conversation.

More
4 weeks 10 hours ago #174191 by Zouloc
Zouloc replied the topic: Increase box size of "other" option in multiple response
:huh:

I read some Limesurvey doc about theme editor but I didn't see anything about this... Did I miss it? :unsure:

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!