Welcome to the LimeSurvey Community Forum

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

Expression Manager: Dynamically insert the subquestion ID of the current questio

  • dominikfroehlich
  • dominikfroehlich's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago - 2 years 6 months ago #230773 by dominikfroehlich
Hi community,

is there a more efficient version to do this (see screenshot) using the Expression Manager?

The question that is being referenced (NWng) has exactly the same structure as this question (screenshot), and basically a filter should be applied that only to rows that an answer has been given before (NWng) should be showing now. For this, I wonder whether there is a way to dynamically insert the subquestion ID of the current question?

Yours
Dominik
  Version 5.3.27+220725  on own server
 
Attachments:
Last edit: 2 years 6 months ago by dominikfroehlich. Reason: Providing image as attachment

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #230779 by tpartner

Cheers,
Tony Partner

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

Please Log in to join the conversation.

  • dominikfroehlich
  • dominikfroehlich's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #230782 by dominikfroehlich
OK - I thought maybe that the family of expressions around "this" (which I haven't really explored yet), could be for something like this.

Thanks!

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #230784 by tpartner
The this variable simply creates an object containing all sub-questions of a multi-column question (multi-choice, array...). You cannot attach further variables to it.

You can only attach the variables linked above to the self variable.

Cheers,
Tony Partner

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

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose