Are offline forms and grid theme possible?

80 views
Skip to first unread message

KGK KGK

unread,
Feb 23, 2015, 8:09:23 AM2/23/15
to kobo-...@googlegroups.com
I have managed to install a local kobotoolbox machine using the vagrant vm. However when testing I cannot get the offline forms mode to work? 


Does this function need additional configuration steps? The form loads up but the empty "signal bars" and a check mark never show up.

Also is there any way to get this enketo grid theme running inside kobotoolbox?

KGK KGK

unread,
Feb 24, 2015, 2:35:15 PM2/24/15
to kobo-...@googlegroups.com
Ok I managed to get the grid theme working in kobotoolbox by building the vagrant vm using the master branch instead of the stable branch referenced on the kobotoolbox site 


Now is there any way to get the offline forms function working also?

Martijn van de Rijdt

unread,
Feb 24, 2015, 3:03:55 PM2/24/15
to kobo-...@googlegroups.com
Hi KGK KGK,

Offline capability was just added to Enketo Express (one of the 3 apps inside the KoBo VM). You could try updating enketo-express to the latest master, but I suspect it requires some fixes because of the new method of configuring Enketo (introduced yesterday).

If you'd like to bypass the configuration work, you could try updating to Enketo Express 1.7.0 (the latest release).

In any case, once the KoBo VM is updated by KoBo or by you, you can enable offline functionality with this setting: https://github.com/kobotoolbox/enketo-express/blob/master/config/default-config.json#L4

Info on configuring Enketo Express is here: https://github.com/kobotoolbox/enketo-express#how-to-configure

Cheers,
Martijn

-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog

KGK KGK

unread,
Mar 1, 2015, 7:21:01 AM3/1/15
to kobo-...@googlegroups.com
Martijn,

Thanks. I upgraded now left with some Frankenstein build combination of all 3 projects. Offline forms are functioning but I need to change the URL manually to include the /_/# string. Is there any central location I could edit this so that the manual URL change is not required when launching forms?

Martijn van de Rijdt

unread,
Mar 2, 2015, 1:26:57 PM3/2/15
to kobo-...@googlegroups.com
That could be a bug unless the enketo API url was set to /api/v2 instead of /api/v1. For the current KC and Enketo Express build you'd want to use /api/v1 (this is somewhere in the KC settings). This is the only breaking change between api/v1 and api/v2 in Enketo (for good reasons).

Thanks for trying this out!

--
You received this message because you are subscribed to a topic in the Google Groups "Kobo Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kobo-users/T6r40U7nx3A/unsubscribe.
To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.

KGK

unread,
Mar 3, 2015, 8:23:52 AM3/3/15
to kobo-...@googlegroups.com
Not sure if this is the relevant setting but it looks like its set to v1

/home/vagrant/src/kobocat/onadata/settings/common.py

# Enketo URL
ENKETO_API_URL_PARTIAL= os.environ.get('ENKETO_API_URL_PARTIAL', '/api_v1')

Thanks

Martijn van de Rijdt

unread,
Mar 3, 2015, 11:22:47 AM3/3/15
to kobo-...@googlegroups.com

--
You received this message because you are subscribed to a topic in the Google Groups "Kobo Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kobo-users/T6r40U7nx3A/unsubscribe.
To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages