- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Filter based on a matrix question
- Deinhard
- Topic Author
- Offline
- New Member
Less
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
9 years 1 month ago #117315
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 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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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
.
Have a nice weekend.
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.
Attachments:
Last edit: 9 years 1 month ago by Deinhard.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
9 years 1 month ago - 9 years 1 month ago #117324
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 Filter based on a matrix question
Change this line:
To this:
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) {
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 9 years 1 month ago by tpartner.
The following user(s) said Thank You: Deinhard
The topic has been locked.
- Deinhard
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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!
Once again - many thanks!
The topic has been locked.