Welcome to the LimeSurvey Community Forum

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

Filter based on a matrix question

  • Deinhard
  • Deinhard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #117311 by Deinhard
Filter based on a matrix question was created by Deinhard
Good morning,

I want to do following:

I have a matrix question with 25 statements and the respondets should rate the statements on a scale form (1) "very important" to (5) "not important".

After this question the respondets should select the most important statement, but only the statements rated from 1 - 3 should appear.

Many thanks for any hint in advance.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #117315 by tpartner
Replied by tpartner on topic Filter based on a matrix question
You will need to use a hidden check-box question to filter the "most important" question. Have a look at this post for inspiration - www.limesurvey.org/en/forum/can-i-do-thi...estion-result#112088 .

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Deinhard
The topic has been locked.
  • Deinhard
  • Deinhard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago - 9 years 1 month ago #117322 by Deinhard
Replied by Deinhard on topic Filter based on a matrix question
Dear tpartner,

many thanks for your help. I'm not familiar with java scripts.

I have changed your exmaple, but I do not knwo where I have to change the script in the hidden question if I want that the answers should appear if A1 and A2 was clicked

.

Code:
CI1_SQ001 == 'A1', 'A2' ||
CI1_SQ002 == 'A1' ,'A2' ||
CI1_SQ003 == 'A1' ,'A2'

Have a nice weekend.
Last edit: 9 years 1 month ago by Deinhard.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago - 9 years 1 month ago #117324 by tpartner
Replied by tpartner on topic Filter based on a matrix question
Change this line:
Code:
$('.column-1 input.radio:checked', q1).each(function(i) {

To this:
Code:
$('.column-1 input.radio:checked, .column-2 input.radio:checked', q1).each(function(i) {

File Attachment:

File Name: limesurvey...13v2.lss
File Size:27 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 1 month ago by tpartner.
The following user(s) said Thank You: Deinhard
The topic has been locked.
  • Deinhard
  • Deinhard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #117356 by Deinhard
Replied by Deinhard on topic Filter based on a matrix question
Many thanks tpartner - it works fine. If I finish the question group with different options (next week) I upload my example.

Once again - many thanks!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose