Hi all,
I am grateful that this has been designed! I have downloaded the experimental plug-in in QGIS and I am testing the design of forms in QGIS shapefile layer. I have the following questions:
-
How do I best design constraints/dependencies/skip logic in my layer form, so that it shows up on KoboCollect?
-
Is there a way in QGIS to begin a group of questions, and end it, in order to show related questions on one screen in KoboCollect? Now, every new field is a new screen in KoboCollect.
-
After I designed my form in QGIS, brought it online to Kobo, filled one form on the KoboCollect on android and finally imported it in QGIS again, QGIS warns me that some errors were observed and added new fields to the layer, instead of using the predefined fields. In other words, the import of my data is not working properly.
> 2020-04-09T15:47:00 WARNING KoboToobox : Can’t find ‘ODKUUID’ field
*> *
> 2020-04-09T15:47:00 WARNING Python error : An error has occurred while executing Python code: See message log (Python Error) for more details.
*> *
> 2020-04-09T15:47:00 WARNING Traceback (most recent call last):
> File “C:/Users/MediaMonster/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QRealTime\QRealTime.py”, line 278, in importData
> service.importData(layer,selectedForm,True)
> File “C:/Users/MediaMonster/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QRealTime\QRealTime_dialog.py”, line 734, in importData
> self.collectData(layer,selectedForm,importData,self.layer_name,self.version,self.geoField)
> File “C:/Users/MediaMonster/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QRealTime\QRealTime_dialog.py”, line 427, in collectData
> self.updateLayer(layer,remoteTable,geoField)
> File “C:/Users/MediaMonster/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QRealTime\QRealTime_dialog.py”, line 506, in updateLayer
> with edit(layer):
> File “C:/OSGEO4~1/apps/qgis/./python\qgis\core\additions\edit.py”, line 38, in enter
> assert self.layer.startEditing()
> AssertionError
Alternatively, since I find it straightforward to design forms in KoboToolbox or in excel, I tested the import of forms from Kobo to QGIS. I see that skip logic (dependencies/constraints) are not integrated in the layer properties… also the possible answers in drop down lists, multiple choice questions, are not incorporated in the QGIS file. Am I missing something, or has this never been the plan?
Cheers,
Ruben