- Posts: 10115
- Thank you received: 3597
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
- Offline
- LimeSurvey Community Team
Less
More
10 years 11 months ago #96320
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
jupo, can you attach an export of a survey containing that group and your code?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DWS
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
9 years 7 months ago #112156
by DWS
The example works fine on LS Versión 2.05+ Build 140902, only need to change:
$('.subquestions-list thead tr th:last', thisQuestion).text($('.questiontext', nextQuestion).text());
to
$('.subquestions-list thead tr th:last', thisQuestion).text("my text");
to show on citronade template.
But I need to add an extra text question and no way to do it.
Try to add a new var nextQuestion = $(thisQuestion).next('div[id^="question"]'); but cant solve it.
Can you help me?
Replied by DWS on topic Array with many different fields in a row : My solution
tpartner wrote: The workaround you was developed to display multiple question types in an array format, not simply add a text input to the rows.
Sample survey attached:
The example works fine on LS Versión 2.05+ Build 140902, only need to change:
$('.subquestions-list thead tr th:last', thisQuestion).text($('.questiontext', nextQuestion).text());
to
$('.subquestions-list thead tr th:last', thisQuestion).text("my text");
to show on citronade template.
But I need to add an extra text question and no way to do it.
Try to add a new var nextQuestion = $(thisQuestion).next('div[id^="question"]'); but cant solve it.
Can you help me?
The topic has been locked.
- steveleathers
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
9 years 1 month ago #118350
by steveleathers
Replied by steveleathers on topic Array with many different fields in a row : My solution
I've got a similar problem, and thanks to this thread I have a (somewhat) working solution. However, my question has lots and lots of subquestions on the Y-Scale, and I was wondering how to make this work with Repeating Headers for the Text question (i.e. the second question whose answer fields get pulled into the first).
I haven't been able to figure this out, but surely there's a way in the script to repeat that <th> field every 10 times that a <td> field occurs, right?
tpartner? Any ideas?
I haven't been able to figure this out, but surely there's a way in the script to repeat that <th> field every 10 times that a <td> field occurs, right?
tpartner? Any ideas?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10115
- Thank you received: 3597
9 years 1 month ago #118370
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
There are several concepts and scripts presented in this extended thread. Can you please be more specific about what you want to achieve and what you have done?
Or perhaps your other post solves your problem?
.
Or perhaps your other post solves your problem?
.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- steveleathers
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
9 years 1 month ago #118416
by steveleathers
Replied by steveleathers on topic Array with many different fields in a row : My solution
Yeah, our problem has been solved. Your code works great, but we realized we were trying to gather too much data on a single page for given our server setup. A 100 x 5 matrix input was too much for us to handle.
Thanks for the reply!
Thanks for the reply!
The topic has been locked.
- borste
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
7 years 6 months ago #143915
by borste
Replied by borste on topic Array with many different fields in a row : My solution
Hi,
I tried limesurvey_survey_234438.lss and it works fine.
Unfortunately, I don't need the two Cols of the Matrix. How can I hide them?
Thanks
borste
I tried limesurvey_survey_234438.lss and it works fine.
Unfortunately, I don't need the two Cols of the Matrix. How can I hide them?
Thanks
borste
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10115
- Thank you received: 3597
7 years 6 months ago #143958
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
Sorry, I don't understand the question. Can you please supply a screenshot/mockup of what you are trying to do?
Also, what LimeSurvey version and template?
Also, what LimeSurvey version and template?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.