- Posts: 10099
- Thank you received: 3589
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array with many different fields in a row : My solution
- tpartner
- Away
- LimeSurvey Community Team
Less
More
11 years 4 months ago #89802
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Array with many different fields in a row : My solution
Can you activate a test survey for me to see?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- tbudelli
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
11 years 4 months ago #89803
by tbudelli
Replied by tbudelli on topic Array with many different fields in a row : My solution
unfortunately not!
Working behind firewalls w/o the ability to open ports...
Working behind firewalls w/o the ability to open ports...
The topic has been locked.
- tbudelli
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
11 years 4 months ago #89804
by tbudelli
Replied by tbudelli on topic Array with many different fields in a row : My solution
nevermind, I will keep trying and let you know if I find the solution.
I really appreciate the time you spent and your ideas!
Thanks again,
Tony
I really appreciate the time you spent and your ideas!
Thanks again,
Tony
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
11 years 4 months ago #89806
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Array with many different fields in a row : My solution
Try this survey for 1.92. The script is in the source of q1.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
- tbudelli
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
11 years 4 months ago #89809
by tbudelli
Replied by tbudelli on topic Array with many different fields in a row : My solution
It is not working for me unfortunately.
I have the array in one question
and the text in the second question. The script is not working for my configuration.
I really wonder what can make it fails...
I have the array in one question
and the text in the second question. The script is not working for my configuration.
I really wonder what can make it fails...
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
11 years 4 months ago #89822
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Array with many different fields in a row : My solution
Unfortunately, I can't help diagnosing much without seeing it live.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Gabriela
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91102
by Gabriela
Replied by Gabriela on topic Array with many different fields in a row : My solution
Hi all,
Please, how can I add a "matrix type" question in a column at the right of the multi text question in this layout? (so the final columns layout is: matrix-multiple text-matrix)
using this code its been created before in this topic?
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
// Identify the questions
var thisQuestion = $('#question{QID}');
var nextQuestion = $(thisQuestion).next('div[id^=question]');
// Hide the multi-text question
$(nextQuestion).hide();
// Add extra cells to the array rows
$('table.question thead tr', thisQuestion).append('<th />');
$('table.question tbody tr', thisQuestion).append('<td />');
// Move the multi-text question text to the last column header cell of the array
$('table.question thead tr th:last', thisQuestion).text($('.questiontext', nextQuestion).text());
// Move the text inputs
$('input.text', nextQuestion).each(function(i){
$('table.question tbody tr:eq('+i+') td:last', thisQuestion).append(this);
});
// Some cleanup styles (for the default template)
$('col', thisQuestion).css({
'width': 'auto'
});
$('table.question tbody th, table.question tbody td', thisQuestion).css({
'padding': '4px 10px'
});
});
</script>
Thanks in advance,
Please, how can I add a "matrix type" question in a column at the right of the multi text question in this layout? (so the final columns layout is: matrix-multiple text-matrix)
using this code its been created before in this topic?
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
// Identify the questions
var thisQuestion = $('#question{QID}');
var nextQuestion = $(thisQuestion).next('div[id^=question]');
// Hide the multi-text question
$(nextQuestion).hide();
// Add extra cells to the array rows
$('table.question thead tr', thisQuestion).append('<th />');
$('table.question tbody tr', thisQuestion).append('<td />');
// Move the multi-text question text to the last column header cell of the array
$('table.question thead tr th:last', thisQuestion).text($('.questiontext', nextQuestion).text());
// Move the text inputs
$('input.text', nextQuestion).each(function(i){
$('table.question tbody tr:eq('+i+') td:last', thisQuestion).append(this);
});
// Some cleanup styles (for the default template)
$('col', thisQuestion).css({
'width': 'auto'
});
$('table.question tbody th, table.question tbody td', thisQuestion).css({
'padding': '4px 10px'
});
});
</script>
Thanks in advance,
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
11 years 3 months ago #91111
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Array with many different fields in a row : My solution
Hi Gabriela, I'm confused about what you mean by "matrix-multiple text-matrix". Can you give us a screenshot of a mock-up?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Gabriela
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91117
by Gabriela
Replied by Gabriela on topic Array with many different fields in a row : My solution
yes.
Like this?
thanks!
Like this?
thanks!
Attachments:
The topic has been locked.
- Gabriela
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91119
by Gabriela
Replied by Gabriela on topic Array with many different fields in a row : My solution
sorry, not that image, but this one..
Attachments:
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
11 years 3 months ago #91123
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Array with many different fields in a row : My solution
But...isn't that the same as this solution -
www.limesurvey.org/en/forum/can-i-do-thi...it=10&start=10#90892
?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Gabriela
- Offline
- Banned
Less
More
- Posts: 30
- Thank you received: 0
11 years 3 months ago #91130
by Gabriela
Replied by Gabriela on topic Array with many different fields in a row : My solution
:blink: :blink: :blink: :blink: ..(ect..)
sorry 2 much. thanks for reminding me.. (im with sort of with 10000 different surveys at the same time)..
And then , can I append this new mutiple-text column to the previous one (the one composed by the matrix + multiple text? )and build the figure from the image?
sorry 2 much. thanks for reminding me.. (im with sort of with 10000 different surveys at the same time)..
And then , can I append this new mutiple-text column to the previous one (the one composed by the matrix + multiple text? )and build the figure from the image?
The topic has been locked.