Welcome to the LimeSurvey Community Forum

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

Modify width of text box for response other

  • JulioRodriguez
  • JulioRodriguez's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #208276 by JulioRodriguez
Modify width of text box for response other was created by JulioRodriguez
Hello everyone, first of all thanks for taking time to read my query.
Is there a way to modify the width and height of the text box for the other answer of a single answer question?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #208285 by Joffm
Hi,
I did it this way:
Add to your "custom.css":
.long .form-group.text-item.other-text-item {width:50%;}
.long input.form-control {width:100%;}

and enter "long" into "css classes" of the question.


Regarding the height:
As this field is a plain <input> field in the database, there is only one line.
You had to change to <textarea> - as e.g. the "long text" question type.
If you expect longer answers you should add a new question of type "long text" and display it by relevance equation, if the "Other" option was checked.

[hr]


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The topic has been locked.
  • JulioRodriguez
  • JulioRodriguez's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #208322 by JulioRodriguez
Replied by JulioRodriguez on topic Modify width of text box for response other
Thank you for your answer
I am left wondering where to locate "custom.css"

Thank you!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #208323 by Joffm
In your extended theme.
Theme editor.

Which version do you use?
Have you the rights to edit themes?

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The following user(s) said Thank You: JulioRodriguez
The topic has been locked.
  • JulioRodriguez
  • JulioRodriguez's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #208325 by JulioRodriguez
Replied by JulioRodriguez on topic Modify width of text box for response other
THANKS for your help!!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose