Welcome to the LimeSurvey Community Forum

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

Question Type / Condition

  • Kristushap
  • Kristushap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213322 by Kristushap
Question Type / Condition was created by Kristushap
Hello, 

I need to find out how many dependents a person has and how old they are: 

 Number of dependants: 
- under 18
- over 18 

i.e. 
Under 18: 3
Over 18: 1

Then, I need the next question to ask for the age based on the number they entered in the previous question. 

4 fields should pop up in the next question where they can enter the name.

Or ideally, it would be one question. 

How can this be done? I am using Version 2.62.2+170203

I don't know how to make the conditions for this type of question with the free text entry. 

Thank you in advance. 

 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #213325 by Joffm
Replied by Joffm on topic Question Type / Condition
You may use a question of type "multiple numerical input" with as many subqustions as you expect as maximum.
Set the subquestion relevance according to the sum of the two answers.
Like:
Subquestion 1: sum(Q1_SQ001.NAOK,Q1_SQ002.NAOK) gt 0
Subquestion 2: sum(...) gt 1
...

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Kristushap
  • Kristushap's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #213331 by Kristushap
Replied by Kristushap on topic Question Type / Condition
Thank you for the quick reply.
Yes, I am using "multiple numerical input already" for over 18 and under 18.

Would "sum(Q1_SQ001.NAOK,Q1_SQ002.NAOK) gt 0" be entered in the second question where they enter the age?

I am a first-timer to LimeSurvey and using Relevance equations. Could you please decipher the logic for me or point me to a good website how relevance logic works : sum(Q1_SQ001.NAOK,Q1_SQ002.NAOK) gt 0

I tried using youtube, but I couldn't find anything useful.

Thank you in advance, Kristina
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago - 3 years 1 month ago #213342 by Joffm
Replied by Joffm on topic Question Type / Condition
Hi, Kristina,
first you should consider, what is a relevance equation.
A relevance equation is a logical term that is either TRUE or FALSE.
E.g. 1+1==2 is TRUE while 1+1==3 ist FALSE.
And in your case:
sum(Q1_SQ001.NAOK,Q1_SQ002.NAOK) == 4 is either TRUE or FALSE.
with Q1_SQ001==1 and Q1_SQ002==3 it is TRUE, with Q1_SQ001==2 and Q1_SQ002==2 it is TRUE, but with Q1_SQ001==1 and Q1_SQ002==2 it is FALSE

second: These relevance equations are used on group level, question level and subquestion level.
And they are entered in the relevance equation field of this level, either group or question or subquestion.

They are to decide if a group/question/sunquestion is displayed or not.
It is displayed if the equation is TRUE and hidden if the equation is FALSE.

And now you ought to know where the equations are placed.

The first subquestion of your second question has to be displayed if the sum in the first question is greater than 0 (no matter if it is 1 or 3 or 14.)
The second subquestion of your second question has to be displayed if the sum in the first question is greater than 1. You have atleast two ages to enter.
The third subquestion of your second question has to be displayed if the sum in the first question is greater than 2.
And so on.

Joffm



 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 1 month ago by Joffm.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose