Nafundi and CartONG add metadata, outputs and calculates to ODK Build

We are excited to announce three new features we just added to ODK Build, the popular form designer for Open Data Kit (ODK). The features enable users to build higher quality forms through support for metadata prompts, outputs in captions, and calculates on prompts.

Metadata prompts

Metadata prompts are hidden prompts in the ODK form that the data collector does not see. In Build, there is now support for metadata like timestamps for when the form was started and finished as well as metadata that uniquely identifies the device. These new prompt types are at the bottom of screen in Build and can be treated like any other prompt type (drag and drop as needed). Build also now automatically includes a special kind of metadata called instanceID. instanceIDs uniquely identify the completed form and help ensure that no duplicate forms end up in the final dataset.

Outputs in captions

Build now supports the {/data/dataName} output syntax for referring to previous answers in captions and hints. For example, users can now have a caption that reads:

Your device ID is {/data/deviceID}. Your first name is ${/data/firstName}

When a data collector sees this caption on the device, it will be filled in with the answers previously given. In this case, if a form designer had a metadata prompt called "deviceID" and a text prompt called "firstName" that was previously answered, the caption would read:

Your device ID is 12:34:56:78:90. Your first name is Yaw.

Below is an image of an output prompt showing the answer from a metadata prompt.

Calculates on prompts

Calculates are an advanced technique for running a calculation using a prompt's answers. Because they are complex to use, they are found under the advanced section of Build's prompt properties. Find out more about how to use calculates in this form design guide.

Metadata, outputs, and calculates are available because CartONG hired Nafundi to build these features. Thanks to CartONG for funding these contributions to the community!

Try these changes today on ODK Build. If you need a sample form, download, unzip and load Demo-Form.odkbuild.zip into ODK Build.

Recent posts