Home Support Forums
[done] Set condition into a question (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: [done] Set condition into a question
|
|
|
|
[done] Set condition into a question 2 Months, 3 Weeks ago
|
Karma: 0
|
|
Hi,
Is it possible to set a condition into a question ? My question is : «Since how many months or years are you living in Quebec ?» I took the multiple numerical type so first answer is for years and the second one is for months, but actually, I'd like to show the month part only if the answer to the year part is 0.
Can you help me ?
Thanks.
|
|
|
|
Logged
|
|
|
Last Edit: 2008/07/26 01:09 By Mazi.
|
|
|
The administrator has disabled public write access.
|
Mazi (Moderator)
Moderator Lime
Posts: 2827
|
|
Re:Set condition into a question 2 Months, 3 Weeks ago
|
Karma: 20
|
|
You have to split up the question. Ask for year first using (my suggestion) a drowdown list. Then show a second question type numerical input which uses conditions and is only shown if the user choses "0" at the first question.
See manual -> "Settings Conditions".
|
|
|
|
Logged
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Set condition into a question 2 Months, 2 Weeks ago
|
Karma: 0
|
|
Thanks.
I finaly decided to ask for the date they arrived in Quebec and set a regular expression to validate the answer. Then, I will compute the difference between this date and the date that they completed the questionnaire. May I export this date from the invitation table or I have to create a question to know this information ?
Thanks.
Mademoiselle
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
Mazi (Moderator)
Moderator Lime
Posts: 2827
|
|
Re:Set condition into a question 2 Months, 2 Weeks ago
|
Karma: 20
|
|
Depending on your survey setting there should be a "submitdate" column in the lime_survey_12345 table.
|
|
|
|
Logged
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:[done] Set condition into a question 1 Month, 3 Weeks ago
|
Karma: 0
|
|
Hi, it's quite a long time i don't enter the forum.
I have been checking the new features for a while and I don't understand why you cannot add conditions based on numerical fields.
I mean, I have a question asking "how many months have you been abroad?" and the following questions are different according to the answer. If i set a condition like "show question x+1 if question x equals 0", the system simply doesn't save it (without error messages...). if i use "0" the condition is added but not evaluated. Do i make something wrong or is it a bug?
I use 1.71+ build 5326, but I cannot perform a complete update right now (i can only change some files).
Thank you for your help.
Minstrel
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
|