- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple Short Text: Increase the word limit in "Default Answer Option"
- NoAmore
- Topic Author
- Offline
- New Member
Less
More
3 years 6 months ago - 3 years 6 months ago #205849
by NoAmore
Multiple Short Text: Increase the word limit in "Default Answer Option" was created by NoAmore
Good Day,
Need help with:
1. Increasing the word limit in the "Edit Default Answers" of Multiple Short Text.
2. Insert a drop-down-menu in the same slot, i.e. "Edit Default Answers" (e.g. a list of countries)
I would be grateful for any guidance. Please see my .Iss attached, guided by Joffm, so kindly.
With my gratitude,
Alex
PS: My previous account was blocked for some reason...
Need help with:
1. Increasing the word limit in the "Edit Default Answers" of Multiple Short Text.
2. Insert a drop-down-menu in the same slot, i.e. "Edit Default Answers" (e.g. a list of countries)
I would be grateful for any guidance. Please see my .Iss attached, guided by Joffm, so kindly.
With my gratitude,
Alex
PS: My previous account was blocked for some reason...
Last edit: 3 years 6 months ago by NoAmore.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 6 months ago #205850
by Joffm
The database field is of type "Text" -> 64000 Characters
Or do you want to have one dropdown in your subquestions?
Please, explain, better show.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple Short Text: Increase the word limit in "Default Answer Option"
What do you want to increase?1. Increasing the word limit in the "Edit Default Answers" of Multiple Short Text.
The database field is of type "Text" -> 64000 Characters
Again: What? Do you want to change the GUI?2. Insert a drop-down-menu in the same slot, i.e. "Edit Default Answers" (e.g. a list of countries)
Or do you want to have one dropdown in your subquestions?
Please, explain, better show.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: NoAmore
The topic has been locked.
- NoAmore
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
3 years 6 months ago - 3 years 6 months ago #205920
by NoAmore
Replied by NoAmore on topic Multiple Short Text: Increase the word limit in "Default Answer Option"
Please see below and attached (sorry, I did not know how to insert images here):
1.Increasing word limit in “Edit default answers” Multiple Short Text:
Only in several out of 30 rows, the participants often need larger space to express their thoughts or requests. In the example below, half of the text is cut-off. Is there a way out?
Please see attached
2.Drop-down menu under “Edit default answers” or any other solution:
Some of our alumni use different ways of typing their countries (often with errors) which skews our categorisation (e.g. US, USA, United States, United States of America). Is there a way of avoiding this?
Please see attached
3.Align left column (“Edit subquestions”) as left:
Currently my text under “Edit subquestions” is aligned right. Can I have it aligned left?
Please see attached
My apologies for the long list of requests. Kindly please see what can be done.I am grateful for any guidance.
RegardsAlex
1.Increasing word limit in “Edit default answers” Multiple Short Text:
Only in several out of 30 rows, the participants often need larger space to express their thoughts or requests. In the example below, half of the text is cut-off. Is there a way out?
Please see attached
2.Drop-down menu under “Edit default answers” or any other solution:
Some of our alumni use different ways of typing their countries (often with errors) which skews our categorisation (e.g. US, USA, United States, United States of America). Is there a way of avoiding this?
Please see attached
3.Align left column (“Edit subquestions”) as left:
Currently my text under “Edit subquestions” is aligned right. Can I have it aligned left?
Please see attached
My apologies for the long list of requests. Kindly please see what can be done.I am grateful for any guidance.
RegardsAlex
Attachments:
Last edit: 3 years 6 months ago by NoAmore. Reason: Attachment
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 6 months ago #205978
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple Short Text: Increase the word limit in "Default Answer Option"
Hi,
I think I was confused about your ""Default Answer Option".
This are the default answers
So I think you talk about the subquestion input fields.
1. Your setting of "Input / Maximum characters" was 5000.
Did you try to increase this value?
2. There is a workaround to insert a dropdown into a multiple short text.
I have this here for version 3.x. Don't know if it works in 2.50/2.73
3. To have the subquestions left-aligned add to your "template.css"
I think I was confused about your ""Default Answer Option".
This are the default answers
So I think you talk about the subquestion input fields.
1. Your setting of "Input / Maximum characters" was 5000.
Did you try to increase this value?
2. There is a workaround to insert a dropdown into a multiple short text.
I have this here for version 3.x. Don't know if it works in 2.50/2.73
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:complete',function() { alert(0); var qID = {QID}; var inputNum = 4; // Define the select element (dropdown) var prov1 = '<select id="prov1" class="form-control">\ <option value="">--Please, select--</option>\ <option value="1">Primary education</option>\ <option value="2">Pre-vocational secondary education (VMBO)</option>\ <option value="3">Senior general secondary education (HAVO) substructure (Year 1-3)</option>\ <option value="4">Senior general secondary education (HAVO) (Year 4-5)</option>\ <option value="5">Senior general secondary education (HAVO) (Year 1-5)</option>\ <option value="6">Pre-university education (VWO) substructure (Year 1-3)</option>\ <option value="7">Pre-university education (VWO) (Year 4-6) </option>\ <option value="7">Pre-university education (VWO) (Year 1-6) </option>\ <option value="8">MBO Level 1</option>\ <option value="9">MBO level 2-4</option>\ <option value="10">Higher professional education (HBO) bachelor</option>\ <option value="11">Higher professional education (HBO) master</option>\ <option value="12">University education (WO) bachelor</option>\ <option value="13">University education (WO) master</option>\ <option value="14">University education (WO) doctor</option>\ <option value="15">Other education level</option>\ </select>'; // Hide the text input $('#question'+qID+' .question-item:eq('+(inputNum-1)+') input[type="text"]').hide(); // Insert the select elements if($('#question'+qID+' .question-item:eq('+(inputNum-1)+') select').length == 0) { $('#question'+qID+' .question-item:eq('+(inputNum-1)+') input[type="text"]').before(prov1); } // Initially select an option if the question has already been answered $('#question'+qID+' select').each(function(i) { if($.trim($(this).next('input[type="text"]').val()) != '') { $(this).val($.trim($(this).next('input[type="text"]').val())); } }); // Listener on the dropdowns - insert selected values into hidden text input $('#question'+qID+' select').change(function() { var thisInput = $(this).next('input[type="text"]'); $(thisInput).val($(this).val()); checkconditions($(thisInput).attr('value'), $(thisInput).attr('name'), 'text'); }); // Some styles $('#question'+qID+' select').css({ 'margin':'0.3em 0 0 0' }); }); </script>
3. To have the subquestions left-aligned add to your "template.css"
Code:
.form-horizontal .control-label { text-align: left; }
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: NoAmore
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 6 months ago #205980
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple Short Text: Increase the word limit in "Default Answer Option"
By the way:
I inserted 12100 characters in an attribute and it was displayed without problems.
You see in table "lime_tokens" the type of the attribute_x field also is "text"
Joffm
I inserted 12100 characters in an attribute and it was displayed without problems.
You see in table "lime_tokens" the type of the attribute_x field also is "text"
TEXT – 64KB (65,535 characters)
The TEXT data type can hold up to 64 KB that is equivalent to 65535 (2^16 – 1) characters. TEXT also requires 2 bytes overhead.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: NoAmore
The topic has been locked.
- NoAmore
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
3 years 5 months ago #206892
by NoAmore
Replied by NoAmore on topic Multiple Short Text: Increase the word limit in "Default Answer Option"
Dear Joffm,
I hope you are well. My apologies, I fell ill (had my ulcerative colitis flare up) and I could not work for the past couple of weeks
Thank you for your kind guidance and support. Your solutions made my life easy! I really appreciate the script for the drop-down with multiple short text.
However, I could not resolve the word-limit issue. I even used Long Free Text instead of Multiple Short Texts and changed the settings for Maximum characters from 5000 to 90000 but it still fetches only 255 characters (with spaces). Please see the attachment.
I am clearly missing something.
Kindly please see what can be done.
With my gratitude to you,
Alex
I hope you are well. My apologies, I fell ill (had my ulcerative colitis flare up) and I could not work for the past couple of weeks
Thank you for your kind guidance and support. Your solutions made my life easy! I really appreciate the script for the drop-down with multiple short text.
However, I could not resolve the word-limit issue. I even used Long Free Text instead of Multiple Short Texts and changed the settings for Maximum characters from 5000 to 90000 but it still fetches only 255 characters (with spaces). Please see the attachment.
I am clearly missing something.
Kindly please see what can be done.
With my gratitude to you,
Alex
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 5 months ago #206906
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Multiple Short Text: Increase the word limit in "Default Answer Option"
Hi,
the only thing you are missing is: Do not send lsq nor lsg exports. Only lss.
lsq and lsg exports are language sensitive.
Therefore we have to guess which base language you used, create a survey with this base language to be able to import a question or a group.
Please, ease our live.
Your problem:
Havea look a the token table in the database.
Field type of attributes is "varchar(255)"
the only thing you are missing is: Do not send lsq nor lsg exports. Only lss.
lsq and lsg exports are language sensitive.
Therefore we have to guess which base language you used, create a survey with this base language to be able to import a question or a group.
Please, ease our live.
Your problem:
Havea look a the token table in the database.
Field type of attributes is "varchar(255)"
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: NoAmore
The topic has been locked.
- NoAmore
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
3 years 5 months ago - 3 years 5 months ago #206918
by NoAmore
Replied by NoAmore on topic Multiple Short Text: Increase the word limit in "Default Answer Option"
Many thanks, Joffm! Resolved! Much appreciated!
My apologies for sending the Isq file. Noted.
My apologies for sending the Isq file. Noted.
Last edit: 3 years 5 months ago by NoAmore.
The topic has been locked.