Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Array by column row/column id names

  • mfavetti
  • mfavetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 months ago #250516 by mfavetti
Array by column row/column id names was created by mfavetti
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.37
Own server or LimeSurvey hosting: own
Survey theme/template: default
==================

I'm working on a survey where array by column is an ideal type for the question I want to implement. This question will also require some customization with javascript. In starting to work on it, I noticed that the ids for the table rows have a bug.

They do not include the answer option id, instead they include the subquestion id (which doesn't apply to the rows.) Also, you will only have unique ids on rows up to the number of subquestions. (ie. 20 options and 3 subquestions, you will have unique ids for the first 3 options, but with a subquestion code.) I've looked into the code and I have a fix, but before I do a PR/bug report, I wanted to check what the naming convention should be.

For the rows, the first column is the answer option, with columns for radios for each subquestion following.

For the regular array question, the subquestion rows use javatbd{SID}X{GID}X{QID}{SQID}, with no id for the answer option columns. For array by column, the rows are answer options, is the javatbd prefix still applicable? I'm not sure what that stands for. The column headers currently have an id of answertext{SID}X{GID}X{QID}{SQID}.

So would you want answertext{SID}X{GID}X{QID}{AOID} for the rows and javatbd{SID}X{GID}X{QID}{SQID} for the columns? Or something else? Let me know and I'll finish fixing the bug.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 months ago #250523 by Joffm
Replied by Joffm on topic Array by column row/column id names
Hi,
I think you are a bit confused about this question type
It is only a swapped array like this
 
Instead you select one answer per row, here you select one answer per column (subquestion)

Here the same question displayed as array.
 

You see you may select the "array by column" if there are quite long answer options but short subquestions

They do not include the answer option id, instead they include the subquestion id

Yes of course, as an array does.
 
Each column in the database (each subquestion) contains the answer code.

Sorry, I do not see your problem.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • mfavetti
  • mfavetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 months ago #250532 by mfavetti
Replied by mfavetti on topic Array by column row/column id names
Maybe three pictures are worth a thousand words.

Please Log in to join the conversation.

  • mfavetti
  • mfavetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 months ago #250533 by mfavetti
Replied by mfavetti on topic Array by column row/column id names
I've already figured out the bug and how to fix it. I just want to know what the developers want to call them to be consistent.

Is there a discord or something for the devs? The IRC channel is dead now.
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 months ago - 1 year 2 months ago #250534 by tpartner
Replied by tpartner on topic Array by column row/column id names
Yeah, I think definitely a bug.

You can try getting a dev in the development channel here - discord.gg/BZNKbKkE

Also, you can file a bug report here - bugs.limesurvey.org/my_view_page.php

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 year 2 months ago by tpartner.

Please Log in to join the conversation.

  • mfavetti
  • mfavetti's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 months ago #250536 by mfavetti
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose