Welcome to the LimeSurvey Community Forum

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

Expression Manager

  • axelebers
  • axelebers's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago - 5 years 6 months ago #174127 by axelebers
Expression Manager was created by axelebers
Hey,


I want to implement the following question group:


1 question group
1 matrix question
2 subquestions


The second subquestion should only appear after the user answered the first subquestion. Thereby, it is not relevant how the user responded. The second subquesiton should appear in either case.

How can I implement this using relevance?

Kind regards
Axel Ebers
Last edit: 5 years 6 months ago by axelebers.
The topic has been locked.
More
5 years 6 months ago #174131 by jelo
Replied by jelo on topic Expression Manager
The terms "question group" and "subquestion" are technical concepts in LimeSurvey.
I got the impression that you might use them differently for your question.
I currently don't understand your question. Perhaps others get it.

Do you already use LimeSurvey? What version?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • axelebers
  • axelebers's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago - 5 years 6 months ago #174133 by axelebers
Replied by axelebers on topic Expression Manager
For a better understanding, I attached the question below.

This is a matrix question with two subquestions.

I want the second subquestion to appear only after the user answered the first subquestion. Thereby, it should be irrelevant how the user answered. The second subquestion should appear in either case.

Thanks
Last edit: 5 years 6 months ago by axelebers.
The topic has been locked.
More
5 years 6 months ago - 5 years 6 months ago #174137 by jelo
Replied by jelo on topic Expression Manager
You control the display of a subquestion via the subquestion relevance field.


These relevance fields can be used to enter ExpressionManager logic (will be renamed to ExpressionScript).

You would e.g enter something like this in the second subquestion relevance field.
Code:
!is_empty(arrayA_SQ001)
If SQ001 is not empty, than display the second subquestion.

You can learn a bit more from older examples.
www.limesurvey.org/de/foren/design-issue...ubquestion-relevance

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 5 years 6 months ago by jelo.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174145 by holch
Replied by holch on topic Expression Manager
Jelo already answered your question.

But seeing the formatting of your scale, may I make a suggestion for better usability?

Put the text before the number and separate it from the number via a line break. Will look a lot cleaner and the numbers will all be on the same line.
Code:
Trifft gar nicht zu</br>0

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

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose