Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Filter the column of an array question

Filter the column of an array question 4 years 6 months ago #68709

  • fredieby
  • fredieby's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Thank you received: 1
  • Karma: 0
Can I use array filter to filter the column of an array question?

Grateful if someone can help me. :unsure:

Fredieby
Last Edit: 4 years 6 months ago by fredieby.
The administrator has disabled public write access.

Filter the column of an array question 4 years 6 months ago #68719

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5899
  • Thank you received: 1291
  • Karma: 521
Unfortunately that's not possible. Can you give more details on what you would like to accomplish?
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.

Filter the column of an array question 4 years 6 months ago #68720

  • fredieby
  • fredieby's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Thank you received: 1
  • Karma: 0
Thank you for your reply!

For example:

Q1 Please choose the letter(s) you like

A
B
C

Q2 Please evaluate the letter(s) chosen in Q1 on the following:

A B C
Most attractive
Is Best
Will never use

That kind of question you see? Can you help me out?

Cheers,
Fred
The administrator has disabled public write access.

Filter the column of an array question 4 years 6 months ago #68724

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4890
  • Thank you received: 718
  • Karma: 217
Well, as far as I see it, you have two options:

1. You put the letters not in the column, but as responses. At the end of the day, the result is the same and you can filter it.

2. There is question type, where you can switch the display of column and lines, can't remember the name. Something like array by column, or something.

But to be honest I think the first version is the best and actually makes the most sense. "Most attractive", etc. should be as columns, as it is the scale in my opinion.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
Last Edit: 4 years 6 months ago by holch.
The administrator has disabled public write access.

Filter the column of an array question 4 years 6 months ago #68837

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5899
  • Thank you received: 1291
  • Karma: 521
I agree with Holch.

You could achieve exactly what you want with JavaScript and/or CSS but why re-invent the wheel?

I would go with a standard array and filter.
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.

Filter the column of an array question 4 years 6 months ago #68973

  • fredieby
  • fredieby's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Thank you received: 1
  • Karma: 0
Thanks guys.

The only thing is that I have long attributes and displaying them in column is not really convenient for reading.

Moreover the array by column doesn't provide the array filter option.

Cheers,
Fred
The administrator has disabled public write access.

Filter the column of an array question 4 years 6 months ago #68991

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4890
  • Thank you received: 718
  • Karma: 217
Yes, you are right. I checked it and the array filter is not available for 'array by column'.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Filter the column of an array question 4 years 6 months ago #68994

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5899
  • Thank you received: 1291
  • Karma: 521
Fred, are the questions on the same page or separate pages?
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.

Filter the column of an array question 4 years 6 months ago #69007

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5899
  • Thank you received: 1291
  • Karma: 521
Never mind that last question.

I've developed a workaround to filter an "Array by Column" question by the answers from a previous "Multiple Options" question. The multi-options question can be on the same page or a previous page.

docs.limesurvey.org/tiki-index.php?page_...ltiple-Options_quot_
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.
The following user(s) said Thank You: fredieby

Filter the column of an array question 4 years 6 months ago #69271

  • fredieby
  • fredieby's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Thank you received: 1
  • Karma: 0
Hi Tony,

You're a genius!!!!
Many thanks for this workaround!

If I could do anything to help please let me know :)

Cheers,
Fred
The administrator has disabled public write access.

Filter the column of an array question 4 years 6 months ago #69280

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5899
  • Thank you received: 1291
  • Karma: 521
Your welcome.

There are many ways to help LimeSurvey - docs.limesurvey.org/tiki-index.php?page=Help+us%3A+Tasks
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.

Filter the column of an array question 4 years 6 months ago #69325

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5964
  • Thank you received: 364
  • Karma: 259
fredieby wrote:
Hi Tony,

You're a genius!!!!
Many thanks for this workaround!

If I could do anything to help please let me know :)

Cheers,
Fred
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Filter the column of an array question 2 years 4 days ago #109168

  • arielmosto
  • arielmosto's Avatar
  • Offline
  • Junior Lime
  • Posts: 34
  • Karma: 0
Hi Tony:

I need to solve the same problem but I can not see the solution because the link its broken.

Thank you very much.

Mosto
The administrator has disabled public write access.

Filter the column of an array question 2 years 4 days ago #109169

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5899
  • Thank you received: 1291
  • Karma: 521
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.

Filter the column of an array question 2 years 3 days ago #109193

  • arielmosto
  • arielmosto's Avatar
  • Offline
  • Junior Lime
  • Posts: 34
  • Karma: 0
Thanks Tony.

I am using 2.05 version but I cant me it work.

Attach its my survey with the code.

If you have an example working to send me.

Thank you very much. Mosto
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.665 seconds