Welcome to the LimeSurvey Community Forum

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

Conditional display based on dual-scale responses

  • mikelottridge
  • mikelottridge's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #204310 by mikelottridge
I'm not sure how to setup a conditional response when using a dual scale.

In the attached example, question 1 is dual scale, each scale has choices a,b,c, with values 3,2,1. I'd like to display question 2 if the scale1 response has a value >=2, and scale2 response has a value <=2

I'm not sure how to setup the conditional response for question 2.
The topic has been locked.
More
3 years 8 months ago #204315 by jelo
Please provide a LSS export with just the questions. LSG is not suitable.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago - 3 years 8 months ago #204316 by tpartner
The scale-1 sub-question code gets appended with "_0" and the scale-2 sub-question code gets appended with "_1".

Something like this, depending on question and sub-question codes:

Code:
!is_empty(Q1_SQ001_0) 
AND 
Q1_SQ001_0 >= 2 
AND 
!is_empty(Q1_SQ001_1) 
AND  
Q1_SQ001_1 <= 2

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 8 months ago by tpartner.
The topic has been locked.
  • mikelottridge
  • mikelottridge's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #204336 by mikelottridge
Replied by mikelottridge on topic Conditional display based on dual-scale responses
Thank you for the suggestion, that's what I'm trying to figure out how to enter. I tried using the condition editor to create this, and it isn't allowing me to enter a integer for comparison. If I then try to manually edit it to correct it, the changes aren't saved. Easier to show a video, see link below. I'm using Version 4.3.12+200820

drive.google.com/file/d/1nfziY7VszTECphJ...tOm/view?usp=sharing
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #204337 by tpartner
Don't use the editor. Place the equation directly in the question relevance field.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • mikelottridge
  • mikelottridge's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago - 3 years 8 months ago #204341 by mikelottridge
Replied by mikelottridge on topic Conditional display based on dual-scale responses
Thanks! FYI, if you use the editor, you can't edit the code. You need to delete anything created in the condition editor first, then enter the equation manually.
Last edit: 3 years 8 months ago by mikelottridge.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #204344 by holch
You shouldn't use the condition editor at all. Honestly.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: mikeinpdx
The topic has been locked.
More
3 years 8 months ago #204477 by mikeinpdx
Thank you for the help! Looks like there is a bug with 4.x with array dual scale and conditionals. I had someone take the same question & conditionals with a 3.x version and it worked fine. I filed a bug report.
The following user(s) said Thank You: tpartner
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose