Welcome to the LimeSurvey Community Forum

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

Problem with condition definition

  • clprovecto
  • clprovecto's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188712 by clprovecto
Problem with condition definition was created by clprovecto
Good Morning

I am developing a questionnaire and would like the questions to appear as you log in to the questionnaire.
I set the condition for the first question and it works correctly.

Example:



When I will perform the same procedure in the next questions, everything is blank, nothing appears.



I have even tried to copy the scenario from the first question and apply it to the second, but when I change to the number I need it erases the scenario.

Could someone help me with this problem ??
I thank the attention.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188713 by holch
Replied by holch on topic Problem with condition definition
Difficult to say with the screenshots, without seeing your survey. However, I would not use the scenarios, but rather use the relevance equation directly.

Copy the relevance equation for the first questions into the relevance equation of the second question and adapt it accordingly. A lot quicker than going through scenarios.

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: clprovecto
The topic has been locked.
  • clprovecto
  • clprovecto's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188720 by clprovecto
Replied by clprovecto on topic Problem with condition definition
First, thanks for the help.

Could you point me to some material so I could take or study examples of the equation?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188722 by holch
Replied by holch on topic Problem with condition definition
You will need to read about the expression manager in the manual. Here a couple of links where you might want to start:

manual.limesurvey.org/Expression_Manager_-_quick_start_guide
manual.limesurvey.org/Expression_Manager_how-tos
manual.limesurvey.org/Expression_Manager_examples

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: clprovecto
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188724 by Joffm
Replied by Joffm on topic Problem with condition definition
manual.limesurvey.org/Expression_Manager_sample_surveys

So you only want to display the second question if the first subquestion of AA is empty?

You really should send an *.lss export of the survey with only the relevent questions.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: clprovecto
The topic has been locked.
  • clprovecto
  • clprovecto's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188728 by clprovecto
Replied by clprovecto on topic Problem with condition definition

Joffm wrote: manual.limesurvey.org/Expression_Manager_sample_surveys

So you only want to display the second question if the first subquestion of AA is empty?

You really should send an *.lss export of the survey with only the relevent questions.

Joffm



Thanks for the material.

Actually I have three questions, I would like that according to the token of who is logged in he shows the question.
Example:
User 1 Attribute 1 Show Question 2
User 2 Attribute 2 Shows Question 4
User 3 Attribute 5 Show Question 7
And replicating to other quiz questions would basically show only the questions that user is allowed to see.
The topic has been locked.
  • clprovecto
  • clprovecto's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 7 months ago #188729 by clprovecto
Replied by clprovecto on topic Problem with condition definition

holch wrote: You will need to read about the expression manager in the manual. Here a couple of links where you might want to start:

manual.limesurvey.org/Expression_Manager_-_quick_start_guide
manual.limesurvey.org/Expression_Manager_how-tos
manual.limesurvey.org/Expression_Manager_examples


Thanks for the material.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188730 by Joffm
Replied by Joffm on topic Problem with condition definition
Hi,

Example:
User 1 Attribute 1 Show Question 2
User 2 Attribute 2 Shows Question 4
User 3 Attribute 5 Show Question 7
And replicating to other quiz questions would basically show only the questions that user is allowed to see.


As said, send your sample as *.lss

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188732 by holch
Replied by holch on topic Problem with condition definition
I agree with Joffm, the best is to upload a sample as LSS, because your explanations are quite confusing.

But, if you want to show a question based on an attribute you can always follow the example of the relevance equation (formula de relevancia em Portugues).

So basically if you want to show question X only to people that have a "1" in the custom attribute 1 you write something like this into the relevance equation of that question:
Code:
{TOKEN:ATTRIBUTE_1==1}
So whenever someone opens the survey with a token link Limesurvey will check for question X if the token attribute 1 of this person has a value of 1. If yes, it will show the question, if no, it will hide the question to this person.

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