Welcome to the LimeSurvey Community Forum

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

Dynamically tailoring answer options between the scales of a dual-scale array

  • oleggorfinkel
  • oleggorfinkel's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 10 months ago - 4 years 10 months ago #185857 by oleggorfinkel
I am using a dual-scale array with dropboxes, and for each subquestion, I want the second scale dropbox to appear grayed out (or at least the answer options inside it to be blank) until an answer has been selected on the first subscale.

A simpler way to ask this question would be: "Can the second scale answer options in a dual-scale array be dynamically tailored based on the first-scale answer selected for each subquestion?"

Thanks!

Oleg G.
Last edit: 4 years 10 months ago by oleggorfinkel.
The topic has been locked.
  • oleggorfinkel
  • oleggorfinkel's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 10 months ago #185862 by oleggorfinkel
Eureka! I found the exact answer I needed in this same forum:

www.limesurvey.org/forum/can-i-do-this-w...ale-2-in-dual-matrix

Sorry about not having looked hard enough for it before posting...

I guess the same script that's provided in the thread above can also be modified, so instead of filtering the second scale based on the first-scale answers, other logic could be embedded in the second scale based on the current row in the array.

Even more wonderful would be:

1. For EM to have a variable similar to "this" or "self" that referenced the answers in the current array row. That would solve a lot of logic coding issues around answer options.

2. For answer options to support relevance expressions directly, the way it's done for subquestions.

Cheers to all!

Oleg G.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose