Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

set box text input width for other

More
9 years 3 months ago #135953 by rolandcyrillo
Please, how do I do to put lines in the box "other" in multiple option? I changed to 300px in the CSS, but it still have a single line and the person who is answering cannot see all the inputed text.
The topic has been locked.
More
9 years 3 months ago #135959 by tpartner
There is no way to change that from a text input to a textarea.

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: rolandcyrillo
The topic has been locked.
More
7 years 1 month ago #171782 by terryaulenbach
Is it also possible to somehow apply this to only one particular "other" text box rather than to all of them? I.e can a custom class be set up that can somehow be applied just to the "other" option in a multiple choice question?
The topic has been locked.
More
7 years 1 month ago #171784 by Joffm
Hi,
this thread started 7 years ago.
Probably LS version 1.92 or so.

I think you are using a newer version, but which one?

For version 3.13.2. I can show this:
Enter in the question text (source code mode:
Code:
<style type="text/css">.form-control {
    width: 500px !important;
}
</style>

Play around with the width to your needs.


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
7 years 1 month ago #171785 by tpartner
LimeSurvey version?

Do you want to apply it to all multiple-choice questions?

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
7 years 1 month ago #171791 by terryaulenbach
Thank you very much. This is exactly what I needed.
The topic has been locked.
More
7 years 1 month ago #171792 by terryaulenbach
Thanks, Tony, but Joffm answered my question.
The topic has been locked.
More
7 years 1 month ago - 7 years 1 month ago #171822 by tpartner
My solution would be to assign a CSS class to the question and place the style rules in your custom.css file so they are in the <head> element rather than the <body>.

Although, in HTML5, placing styles in the <body> is valid, it will force the browser to re-render the page as it loads. This causes an extra load on the browser and may be visible to the user. As a result, I try to avoid styles in the <body> element.

1) Assign a CSS class to the question something like "input-width-500".

2) Place something like this in custom.css:

Code:
.input-width-500 input[type="text"].form-control {
    width: 500px;
}
 
@media (max-width: 768px) {
  .input-width-500 input[type="text"].form-control {
    width: auto;
  }
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 1 month ago by tpartner.
The topic has been locked.
More
7 years 1 month ago #171835 by terryaulenbach
Thanks, Tony! I will try this way as well. It's kind of what I was going for but couldn't quite figure out.
The topic has been locked.
More
6 years 7 months ago #179398 by MackFord
Thanks a lot of you for your help!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose