- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Problem with condition definition
- clprovecto
- Topic Author
- Offline
- New Member
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.
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11660
- Thank you received: 2742
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.
- clprovecto
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
Could you point me to some material so I could take or study examples of the equation?
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11660
- Thank you received: 2742
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.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12940
- Thank you received: 3979
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
- clprovecto
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
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.
- clprovecto
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
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.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12940
- Thank you received: 3979
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
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11660
- Thank you received: 2742
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:
{TOKEN:ATTRIBUTE_1==1}
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.