Bernard,
This is a great question, and it gives a look inside the slightly more complex skip logic required for operating within a repeating group.
I will explain here in some detail how this works.
First off, yes, there was a flaw in KoBoForm’s working with skip logic inside repeating groups, so kudos to the KoBoNauts who found this and brought it to the developer’s attention. We are fixing this right now and will push the changes to the online KoBoForm asap. The problem is with KoboForm not liking a question from a repeat as the value for another repeat question’s relevant.
Bernard has a repeating group, and inside that group, there is a questions that is only answered if the previous question’s answer = 3.
The skip logic for this should look like:
The most important part is the relevant=“” statement, which controls the skip logic.
relevant="/NFI_Tracking/A05/A05_05 = ‘3’
If you ever want to customize the skip logic in a way that KoBoForm doesn’t do automatically, there is a great feature for Hand Coding the skip logic. You just check the “Hand Code” box, and then you will get an open text box. You write in there whatever skip logic would go in between the quotes from relevant=“…” Be sure to use a full Xpath expression starting with /.
Like this: /Instance/Group/Question = ‘value’
This function allows you to get around errors as well as do more creative things with your Skip Logic. If you want to learn more clever things to do with Skip Logic see the user guide.
Bernard should try that for getting around this issue today, but the fix should be up very quickly and you won’t have to worry about it anymore.
Best,
Neil Hendrick
···
On Wed, Jan 30, 2013 at 10:40 AM, Neil Hendrick neil.h...@kobotoolbox.org wrote:
Bernard,
After loading your form, i confirm your issue. Thanks for including your XML and a screenshot of the error, very helpful! We’ve made some improvements to the handling of skip logic within groups, but I will have to dig into this. Let me get back to you with a solution.
~Neil
On Wed, Jan 30, 2013 at 9:00 AM, Bernard Lukwiya luk...@gmail.com wrote:
Dear All,
Same old problem with skip logic, has anybody found out how to do this. I have tried about 5 times, each time creating a new form but I still get the same error (Not a valid question) see attached.
I have uploaded both my xml and the screenshots of the error I receive. Once I click okay, select my logic question, the answers don’t show.
I want to apply the skip logic on the next question appear(and prompt for price) If the item was sold.
Please help!!!
Bernard.
On Monday, August 13, 2012 8:24:40 AM UTC+3, Dustin Locke wrote:
Hey community,
I think I have figured out how to get the skip logic to work within the a repeat groups, but I would like to hear what your opinions are on the topic.
I have to go into the code, and the only thing that I can find that dictates the skip feature is in the region. Is the only thing I have to do is write the relevant = command at the end of the instance? Is there any other call outs that I need to be aware of to make this work? Does the repeat command come before the relevant = command or vice versa, or does it matter?
Ok I am going to try this out and hope for the best.
Hope to hear from someone soon.
Survey starts next Sunday in the Whitechapel district of London…
Cheers
Dustin
–
You received this message because you are subscribed to the Google Groups “Kobo Users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to kobo-users+...@googlegroups.com.
To post to this group, send email to kobo-...@googlegroups.com.
Visit this group at http://groups.google.com/group/kobo-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.