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
  • bwoo5's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 4 months ago #87965 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!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 4 months ago #88065 by tpartner
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.
More
7 years 2 months ago #147125 by amun
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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 2 months ago #147149 by tpartner
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.
The topic has been locked.
More
5 years 11 months ago #167600 by padbrest
template.css not found. Is there another CSS filename (version 3.7) ?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #167622 by tpartner
The file is now custom.css



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.
The following user(s) said Thank You: tomekusek
The topic has been locked.
More
5 years 6 months ago #174075 by Zouloc
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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174090 by tpartner
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.
More
5 years 6 months ago - 5 years 6 months ago #174100 by Zouloc
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: 5 years 6 months ago by Zouloc.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago - 5 years 6 months ago #174115 by tpartner
There is no "default" theme in 3.x.

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.
Last edit: 5 years 6 months ago by tpartner.
The following user(s) said Thank You: Zouloc
The topic has been locked.
More
5 years 6 months ago #174116 by Zouloc
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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174159 by tpartner
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.

Lime-years ahead

Online-surveys for every purse and purpose