Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Array with many different fields in a row : My solution

Array with many different fields in a row : My solution 3 years 10 months ago #91185

  • Gabriela
  • Gabriela's Avatar
  • Offline
  • Senior Lime
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Master..! thanks one million time again.
The administrator has disabled public write access.

Array with many different fields in a row : My solution 3 years 6 months ago #96006

  • jupo
  • jupo's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hello everybody,
I experience the same difficulties as tbudelli when inserting the script of tpartner into the source of the array question. Did anybody find a solution to that problem? The comment question appears next to the matrix question, but the input fields don´t show up, just as you see in the pdf (I know, not the most beautiful solution but the snipping tool is not working...).
Help would be grate!!
Attachments:
The administrator has disabled public write access.

Array with many different fields in a row : My solution 3 years 6 months ago #96021

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
What LimeSurvey version are you using?

Do you have any JavaScript errors?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array with many different fields in a row : My solution 3 years 6 months ago #96022

  • jupo
  • jupo's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I installed LS just a couple of days ago, it´s the latest (2.00+). The alert you posted earlier is working fine, too...
The administrator has disabled public write access.

Array with many different fields in a row : My solution 3 years 6 months ago #96266

  • jupo
  • jupo's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Nobody here who could help me? I´m desperated...
The administrator has disabled public write access.

Array with many different fields in a row : My solution 3 years 6 months ago #96267

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9553
  • Thank you received: 1371
  • Karma: 389
@jupo : I think Tony offer some professionnal services. You can see too at limesurvey.com to have professionnal services.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

Array with many different fields in a row : My solution 3 years 6 months ago #96320

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
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 administrator has disabled public write access.

Array with many different fields in a row : My solution 2 years 2 months ago #112156

  • DWS
  • DWS's Avatar
  • Offline
  • Senior Lime
  • Posts: 53
  • Thank you received: 1
  • Karma: 2
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:

File Attachment:

File Name: limesurvey...7621.lss
File Size:20 KB


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 administrator has disabled public write access.

Array with many different fields in a row : My solution 1 year 8 months ago #118350

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?
The administrator has disabled public write access.

Array with many different fields in a row : My solution 1 year 8 months ago #118370

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
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?


.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array with many different fields in a row : My solution 1 year 8 months ago #118416

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!

:)
The administrator has disabled public write access.

Array with many different fields in a row : My solution 1 month 1 day ago #143915

  • borste
  • borste's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
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
The administrator has disabled public write access.

Array with many different fields in a row : My solution 1 month 1 day ago #143958

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
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?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
Time to create page: 0.398 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form