Managing Form Submissions in Central#
The most common way to use ODK Central is in conjunction with a data collection client, typically on a mobile device, such as ODK Collect. To do this, you will need to connect to it from your mobile device, after which you will be able to uploaded submissions back to Central.
ODK Central also bundles Enketo, which enables preview and submission of forms directly from a web browser. Please note that as with all ODK clients, Enketo does not always behave quite the same as Collect, or support the same features. Any authorized Web User may fill out a Form directly from the browser, as will be described in more detail below.
Finally, ODK Central offers Public Access Links. A Public Access Link grants anybody in possession of the link the ability to submit to a Form on your server. You can control whether each respondent can submit more than once, and revoke access from any Link at any time.
Submissions sent to Central are available to browse in a preview table, to connect directly to data analysis tools, and for download.
Direct Web Browser Submissions#
Web Users who are Administrators, Project Managers, or Data Collectors can directly fill Forms in the web browser from the Central administration website. This functionality is provided by Enketo, which does not always behave quite the same as Collect, or support the same features.
Administrators and Project Managers can begin a survey by going to the Submissions tab of the Form, and clicking on the New button next to the Submissions header. This will open a new tab which will load the Form in Enketo.
Data Collectors do not have access to the detailed Form management pages. Instead, they will find a Fill Form button next to the Form name in the list of Forms on the Project Overview page.
To find the Form submissions page, first find the form in the Form listings page (Form Overview page for that form. Click on the tab below the form name to find the submissions.) and click on it. You will be taken to the
The table preview you see here will at first show you the first ten fields of your survey and their results, with the latest submissions shown closest to the top. Any downloadable files will appear with a green download link you can use to directly download that media attachment. The submission's instance ID will always be shown at the right side of this preview table.
If your form has more than ten fields, you can show more columns by accessing the Columns shown dropdown and checking the columns you wish to see. While the Columns shown pane is open, you can use the search box along its top to search for a particular column name if you have many.
In the State and actions column, you will see the current review state of each submission and the number of edits that have been made, if any. If a submission is missing expected media uploads, you will see a warning here. When you hover over a row (or tab to it with your keyboard) you will see controls in this column to edit the submission, or see more details about it. You can read more about review states and the submission detail page below.
You can limit the rows that appear by the submitter, the date, and the review status. These filter controls are available just above the submission table.
Any filter you apply to the submission table also applies to the download button. To work with your data, you can download it from Central. Right now, you can do this in one of two ways:
The CSV Download option will get you a
.zipfile containing one or more
.csvtables, along with any multimedia submitted to the form. This is a good option if you already have custom tools you wish to use, or you want to import it into an offline analysis tool like SPSS or Stata.
The OData connector allows you connect a live representation of the data to OData-capable tools like Microsoft Excel, Microsoft Power BI, Tableau, SAP, and others. This option has some advantages: the data is transferred more richly to maintain more data format information, and the feed is always live, meaning any analysis or reports you perform in your tool over an OData connection can be easily refreshed as more submissions come in.
When the rows of the table have been filtered in any way, that filter also applies to the downloads. This makes it possible to download partial sections of your data at once.
Learn more about these options below:
Downloading submissions as CSVs#
To download all submission data as
.csv tables, click on the Download all # records button on the right side of the listing page:
If you have any row filters applied to the submission table, those filters will be applied to your download as well. You can use this to, for example, download only submissions from a particular month, or only approved submissions.
Once the download dialog opens, you'll be given some additional export options.
Some of the options may be disabled if they do not apply to your data, or if they are not available due to features that you have enabled (such as managed encryption).
The option to split select multiple choices will create a new column in the export
csvfor each unique known value in each select multiple field. These columns then indicate whether each submission checked each option.
The remove group names option takes out the prefix usually added to groups in the header: so for example,
meta-instanceIDwould become just
Finally, the option to include previously deleted fields will include every known previously deleted field in any version of the Form in the export, along with any data found for those fields.
Click on one of the format options on the right to start the download.
.zip completes downloading, you will find one or more files when you extract it:
A root table
.csvnamed after your Form title.
.csvfiles representing any repeats you may have in your form, with join columns on the left of each table relating each row to its counterpart in the parent table. Each join table is named to reflect its relationship with the others. If there is only one
.csvfile, then your form has no repeats.
A folder named
fileswhich contains subfolders, each named after an
instanceIdof a submission. Each subfolder then contains a set of file attachments relating to that submission. If no
filesfolder exists, then no multimedia attachments have been submitted to this form.
If you have enabled Client Audit Logging on your form, and log events have been submitted to the server, then you will find a file that ends with
- audit.csv. This file combines all the logging data from all submissions to the form into a single table.
Excel will not import CSVs with Unicode characters like ã, ß, and 箸 correctly if you double-click the file or open it from the File menu. You must use the Text Import Wizard and specify a file origin of Unicode (UTF-8, 65001) and the comma delimiter.
Rather than downloading CSVs manually, you can also connect Excel directly to Central via OData and get a live-updating spreadsheet with auto-detected data types and Unicode support.
Connecting to submission data over OData#
To connect a third-party tool to Central over OData, you will need a link to paste into the tool. You can find this link by clicking on the Analyze via OData button on the right side of the listing page:
Once you click on it, you should see this popup appear:
To connect with Excel or Power BI, follow these steps.
Start the Get OData feed action.
In Excel, select the Data menu, then Get Data, From Other Sources, then From OData Feed.
In Power BI, select the Home menu, then Get Data, then OData feed.
Leave the feed type as Basic (not Advanced), then copy and paste in the link from Central and then select OK.
Change the authentication type to Basic (not Anonymous), enter your Central email address and password, and then Connect.
The Navigator window now appear. Select Submissions, then Load.
If you are having trouble getting Power BI or Excel to connect, and especially if you see error messages about permissions or authentication, clear your cached permissions and try again.
If you are using Excel 2016, install Microsoft Power Query for Excel 6 and go to the Data menu, then New Query, and then From Other Sources to find the From OData Feed item.
If you want to use the free and popular R statistics and analysis tool, we recommend you use ruODK. A guide for getting started with it can be found here. ruODK is developed and supported by community members. If you wish to help improve it, you can find information on GitHub.
You can also access the OData feed yourself. The OData feed is an easily consumable JSON data format and offers a metadata schema, some filtering and paging options, and more. To learn more about the OData feed, click the API Access button or see the developer documentation directly.
Setting up Media Downloads#
For a lot of reasons, it can be tricky to access submission media files while doing data analysis. Getting an analysis tool to fetch data from Central does not mean it can or knows how to get images, video, and other media.
In OData data responses, you will see media files given by their filename. If you want, you can construct a link within your analysis tool that will download any media file with your web browser. You can do this by gluing together pieces of text into a URL. Often this gluing operation is called
concatenate. You'll need to make it look like this:
Where the uppercase words need to be replaced with the appropriate values. The easiest way to get the
FORMID is to open the Form in your web browser in the Central administration website and just copy the values you see there. The two web addresses are quite similar. Then you have to add the
INSTANCEID and the
FILENAME, both of which you can find in the OData data itself.
Here is an example of a completed address:
This location is a web page that causes a web browser to download a file. It cannot be used directly to embed images or video on any website or application.
Submission Review States#
As of version 1.2, Central allows Project Managers and Administrators to review submissions and assign them certain states. This feature lets you perform verification and follow-up data editing within Central itself, if you need this kind of a workflow. The available states are:
The default state for all incoming submissions, assigned automatically by Central
Automatically assigned by Central whenever a submission is edited by any user
Can be assigned by project staff if a submission has problems
Can be assigned by project staff to approve a submission
Can be assigned by project staff to reject a submission
Edited states are automatically set by Central any time a submission is uploaded or edited. The other states are assigned by project staff. We suggest some meanings for these states above, but they don't cause anything to happen automatically. For example, rejected submissions will still be included in your data exports unless you filter them out yourself. So, you are free to use these states however you'd like.
Once submissions have been reviewed, the submission table download and the OData connection both allow submissions to be filtered by review state. This lets you, for example, download only all the approved submissions.
As of version 1.2, each submission has its own detail page which provides basic information about the submission, an activity history of action and discussion on that submission, and tools for updating the submission review state and data itself.
The title at the top is pulled from the
instance_name if there is one, otherwise it will be the automatically assigned
instanceID. We recommend you define an instance_name based on the data in each submission. This is especially important if you plan on using this page a lot, because it makes navigation much easier to have friendly names at the top of the page and in the web browser title and tab.
Basic detail can be found along the left. If there are expected media attachments for this submission, that status information will be provided.
The main activity feed on the right shows you the discussion and action history of the submission. Any review state changes, comments, and edits will appear here. At the top of the activity feed, you can Review a submission to assign a new review state, Edit the submission directly in your web browser, or type in the box to begin leaving a comment.
You can leave a note when you update the review state, to indicate why the decision is being made, or any other information you'd like saved.
From the submission detail page you can press the Edit button to edit the submission in your web browser. When an edited submission is resubmitted, a new version of it is created, just like a form version. You will be able to see previous submission versions in a future version of Central.
Any time a user edits a submission, they will see a note when they are returned to the detail page suggesting that they leave a comment describing the edits they have made. This is optional but highly encouraged. In a future version of Central, greater detail will be automatically provided about the data values that were changed.
Finally, when edits are submitted, the submission review state will automatically be set to Edited, and (as of version 1.3) you will see the changes between versions in the Submission Detail activity feed. Please note that Central will show you the differences between versions, but it doesn't know the exact actions you took to cause those changes. Sometimes the differences shown are not the same as the actions taken, but the resulting data will appear exactly as edited.