Welcome to the LimeSurvey Community Forum

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

Fill subquestions of a multiple short text based on a previous array question

  • ines_azalmeida
  • ines_azalmeida's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago #156409 by ines_azalmeida
Hello,

Is it possible to fill a multiple short text based on previous answers from a array question using checkboxes?

This is my array question:




So, if I select one of the subquestions from the x-axis (Software...) it should appear in the next question as a subquestion of a multiple short text.

I'm using LS 2.62.0+170124

Thanks in advance!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago - 6 years 9 months ago #156443 by tpartner
You can place relevance on the sub-questions of Q2.

So if, for example...
  • Array question code: Q1
  • Array Y-scale sub-question codes: Y001, Y002, Y003...
  • Array X-scale sub-question codes: X001, X002, X003...

...and assuming you don't want the Q2 sub-questions to appear if column 1 is checked in Q1...

The relevance on the first sub-question of Q2 would be:

Code:
count(that.Q1.sq_Y001) - count(that.Q1.sq_Y001_X001) > 0

Sample survey attached:

File Attachment:

File Name: limesurvey...6-30.lss
File Size:22 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 9 months ago by tpartner.
The topic has been locked.
  • ines_azalmeida
  • ines_azalmeida's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago #156447 by ines_azalmeida
Thank you so much!

It works, but only if a select Y1, is it possible to work if I select one of the Array Y-scale sub-question, like Y2 or Y3 and so on?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #156448 by tpartner
Sorry, I don't understand the question. My sample survey shows the corresponding Q2 sub-questions if anything except column 1 is selected in Q1. That is what you asked for in the original post.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ines_azalmeida
  • ines_azalmeida's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago #156449 by ines_azalmeida
Maybe, I've explained it in a bad way, sorry. What I want is the opposite, so, for example, in your sample survey, if I select one of the columns (1,2,3,4) except column 1, whatever the line (Option1, Option 2,...) I select, even if I just selected one row of that column, the column title will appear in the next question.

Once again, thanks for the help.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago - 6 years 9 months ago #156453 by tpartner
Oh in that case the relevance for q2, sub-question 1 would be:

Code:
count(that.Q1.sq_X002) > 0



Sample survey:

File Attachment:

File Name: limesurvey...5661.lss
File Size:21 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 9 months ago by tpartner.
The topic has been locked.
  • ines_azalmeida
  • ines_azalmeida's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago #156455 by ines_azalmeida
Thank you so, so much!

Just one more little thing, is it possible to set a condition to Q2 to appear only if the first column it's not selected?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose