Managing Forms in Collect¶
For an overview on forms and form design, see Intro to Forms in ODK.
Loading Blank Forms¶
In order to fill out forms with survey participants, you must first load blank forms into the Collect App.
Loading Forms from ODK Aggregate Server or Google Drive¶
Select Get blank forms on the app home screen to browse available forms and download them to your device.
Find and download forms.
If you are using ODK Aggregate, you will see a list of available forms. Select the ones you would like download, and tap Get Selected.
Before downloading blank forms from Aggregate to Collect, a form has to be uploaded. See Form Management in ODK Aggregate.
If you are using Google Drive, the Get Blank Form screen will display the folders in your Google Drive account and any XML documents. Select and download the forms you want.
All XML documents in Google Drive will appear in Collect. XML documents will be listed even if they are not valid XForms.
And you can actually download any XML document, even if it isn't a real XForm.
But you can't Fill Out a non-form.
Loading forms directly¶
Loading forms with
You can load forms directly from a computer to your device via USB, using Android Debug Bridge.
$ adb push path/to/form.xml /sdcard/odk/forms/form.xml
Loading forms from device storage¶
You can also download forms to your device via a web browser, and move them to the
odk/forms/ directory, using the device's file manager ( ).
Go to the Settings menu (⚙) on your device and find
From the internal storage screen, selectto open the file manager.
Loading form media¶
If a form includes images or other media, those files have to be loaded to the device along with the form.
Media files should be placed in a folder labeled
- When using ODK Aggregate, the form upload prompt includes instructions to upload the
-mediafolder. The files are downloaded automatically when fetching forms from Aggregate.
- When using Google Drive, the
-mediafolder should be uploaded to the same location as the form. If you share forms with another user, you need to share the parent folder which contains a form and a folder with media files. Sharing both of them separately wouldn't be enough.
- If loading forms directly to your device, the
-mediafolder needs to be placed in the
sdcard/odk/formsdirectory, alongside the form itself.
Editing Saved Forms¶
Completed (filled-in) form instances can be edited after they have been saved.
Select Edit Saved Form
Select a form by name
This will reopen the form instance, which you are then free to edit. Form instances are listed by name, which is one reason it can be helpful to name the form instance after filling it out.
- Sent forms will not appear in the Edit Saved Forms list.
- Sent forms, will be available for viewing in View Sent Forms list, along with the details which cannot be edited.
- You may freely edit Saved and Finalized forms.
Uploading Finalized Forms¶
Eventually, you will want to upload completed form instances for analysis and data aggregation.
Doing this from within the Collect app marks the forms as sent. Sent forms are no longer editable, but they remain viewable until they are deleted.
Uploading to Aggregate or Google Drive¶
Blank values in the form are sent to google sheets as cells with a space and not as empty cells. When you are testing for empty cells, you might not get the correct results. To make sure you get the correct results, you could:
- Use the TRIM function in the google sheets to remove the leading and trailing spaces from the cells.
- Define empty cell in your tests to be a cell that is either empty or contains a single space.
Using Google Drive as a server, filled forms are sent to the first sheet in a given spreadsheet, no matter what its name is. If you use one spreadsheet to keep a form definition and to collect filled forms make sure the sheet you expect to be filled is in the first place.
Pulling forms with Briefcase¶
For local form management, use ODK Briefcase to pull Finalized form instances to your local computer.
Pulling forms with
You can copy form instances from the device using adb pull, however this will not update the state of the form to Sent.
You can delete Saved, Finalized, Sent, and Blank forms.
Select Delete Saved Form on the app home screen.
Select the Saved Forms or Blank Forms tab.
Deleted Forms are listed in the View Sent Forms page, but cannot be viewed. They are indicated with the crossed-out eye icon.