- Posts: 6
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
3 years 5 months 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?
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12965
- Thank you received: 3986
3 years 5 months ago - 3 years 5 months ago #208285
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Modify width of text box for response other
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
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: 3 years 5 months ago by Joffm.
The topic has been locked.
- JulioRodriguez
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
3 years 5 months 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!
I am left wondering where to locate "custom.css"
Thank you!
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12965
- Thank you received: 3986
3 years 5 months ago - 3 years 5 months ago #208323
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Modify width of text box for response other
In your extended theme.
Theme editor.
Which version do you use?
Have you the rights to edit themes?
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: 3 years 5 months ago by Joffm.
The following user(s) said Thank You: JulioRodriguez
The topic has been locked.
- JulioRodriguez
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
3 years 5 months 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.