Welcome, Guest
Username: Password: Remember me

TOPIC: Sub-question Tailoring

Sub-question Tailoring 3 weeks 3 days ago #111916

  • zibarzani
  • zibarzani's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hello,
I am a beginner in desperate need of help! :(

I have an array question ("B1") that asks respondents to enter 1 to 10 names of relatives. In next question ("B13") which is array dual scale they are asked to answer few questions about these people.

I used this code in sub-questions to fill it with answers:
{INSERTANS:181543X128X1070B1Y1_B1X1}

Now my problem is: I want to change the number of visible rows of sub-questions in "B13" regarding the number of answers to "B1".
(You may find the problem clearly in the attached prt scr)

I read this page in forum:
manual.limesurvey.org/Expression_Manager...cading_Array_Filters
And, tried adding "B1" in 'array filter' of "B13", but it didn't work!

Thank You!
Attachments:
The administrator has disabled public write access.

Sub-question Tailoring 3 weeks 3 days ago #111935

  • Bigred
  • Bigred's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 10
  • Karma: 2
You can only filter with multiple choice questions.

If you have an array and want the answers in this array to filter the next array, you will need to have a hidden multiple choice question where you check specific answers based on your logic and then put the SGQ code for this question in the target arrays arrayfilter option.

This will involve javascript to make it work.

(Anyone, please let me know if I'm wrong and if there is a much easier way of using the array filter with non multiple choice questions)
The administrator has disabled public write access.
The following user(s) said Thank You: zibarzani

Sub-question Tailoring 3 weeks 2 days ago #111940

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4192
  • Thank you received: 788
  • Karma: 359
Another solution may be to have 10 array dual scale questions, each with only one sub-question. You could then use relevance to hide/show those question based on the answers in the first array.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: zibarzani

Sub-question Tailoring 2 weeks 6 days ago #112061

  • zibarzani
  • zibarzani's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Are you sure?
In manual it says:
"Starting in 1.92, subsequent questions can be filtered on any array question types, including:
Multiple choice
Multiple choice with comments
Multiple short text
Multiple numeric
Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
Array (Dual Scale, Text, Numbers)
Ranking"

And, here is an example from manual that is exactly what I want to do:
Last Edit: 2 weeks 6 days ago by zibarzani.
The administrator has disabled public write access.

Sub-question Tailoring 2 weeks 6 days ago #112062

Maybe I am wrong, but as far as I understand it works fine if you use a multipe choice with comment type. If the multiple choice question is mc_1, the comment is in mc_1comment
Frans
The administrator has disabled public write access.

Sub-question Tailoring 2 weeks 6 days ago #112065

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4192
  • Thank you received: 788
  • Karma: 359
And, here is an example from manual that is exactly what I want to do
Hmm...it seems that you can filter an array by a previous multiple-short-text question.

Here is a working LS 2.05 survey:

File Attachment:

File Name: limesurvey_survey_235541_2014-08-31.lss
File Size: 20 KB


Capture_2014-08-31.jpg
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.111 seconds
Donation Image