- Posts: 7
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
3 years 8 months ago #204310
by mikelottridge
Conditional display based on dual-scale responses was created 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.
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.
Attachments:
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
3 years 8 months ago #204315
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Conditional display based on dual-scale responses
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 8 months ago - 3 years 8 months ago #204316
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Conditional display based on dual-scale responses
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:
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
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
drive.google.com/file/d/1nfziY7VszTECphJ...tOm/view?usp=sharing
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 8 months ago #204337
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Conditional display based on dual-scale responses
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
3 years 8 months ago #204344
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Conditional display based on dual-scale responses
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.
- mikeinpdx
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 1
3 years 8 months ago #204477
by mikeinpdx
Replied by mikeinpdx on topic Conditional display based on dual-scale responses
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.