Phosphaenus,
Thanks for sending your XML, i see what’s happening.
OK, looking at your form in KoBoForm, I have looked at what you are trying to do, here follows some comments and solutions:
Here is the structure I’m trying to construct, with indication of the types of error I’m getting…
- District identifier code [response: text]
It makes no difference, but out of curiosity, is there a reason you are recording this ID# as text? You can record it as a number as long as it is less than 9 digits. If datatype is set to “Number” you can operate on it mathematically, though that is likely a moot point since this is an ID number.
- Interviewer: Have you read out consent form [response: yes or no]
SKIP LOGIC: all subsequent questions skip to end if response 2 = no
This requires that skip logic be applied to each question you want to skip.
GROUP: Households
3) REPEATING QUESTION: Add another household member?
skip logic added here.
3.1) Is [NAME] male or female [response: m or f]
skip logic added here.
3.2) How old is [NAME]? [response: number]
skip logic added here. (for q 2)
SKIP LOGIC: skip next question if response 3.1.2>18 [but I get error message “3.2 is not a valid question”
Yes, this is a flaw in KoBoForm which you have discovered, and for which you have our thanks. It’s a little confused by skip logic inside of groups, however, there is a workaround.
We will use the Hand Code option.
3.3) Has [NAME] missed school because of sickness over the last 7 days? [response: yes or no]
[end repeating group]
We want to skip this question is 3.2 is > 18 (because the person is too old for school)
Put a check mark in the Hand Code option. You will see that there is already a piece of code in there for question 2. This skip logic is correct because it refers to a question that is not part of a group.
Add a line that refers to question 3.2, and wants the answer to be < 18.
/WSUP/A05/A05_03 < 18
You will notice that this refers to quesion 3.2 as “A05_3”. This is the actual node name in the XML, you can find the node name for any question by selecting that question in KoBoForm and clicking “Show Advanced Properties”.
- What is the main type of water supply for this house? [response: select one]
Here, i see that the skip logic is applied correctly. I did not see the same skip logic applied to other questions.
(Please note that we have an issue with the “Apply to other questions” function, so you can’t use that for questions inside a group. Expect a fix with the next release. )
I have difficulties when I try to drag questions within the form.
What are the difficulties?
Also, I get an error message when I try to adjust Settings.
Can you send a screen print of the error?
Some other comments:
You have named your group: 3) Add another householder member?
But you should name it something like “Household Member” because otherwise the app will ask you “Add New Group? Add a new “3) Add another householder member?” group?”
It’s better to make it say
*“Add New Group? Add a new “Household Member” group?”
···
–
You received this message because you are subscribed to the Google Groups “Kobo Users” group.
To view this discussion on the web visit https://groups.google.com/d/msg/kobo-users/-/SHaejv0kv38J.
To post to this group, send email to kobo-...@googlegroups.com.
To unsubscribe from this group, send email to kobo-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/kobo-users?hl=en.