Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 2.31 KB

validate.rst

File metadata and controls

64 lines (34 loc) · 2.31 KB

ODK Form Validate

Building a form is an essential step in ODK data collection project. You can use any tool you prefer for that, but you need to make sure that your form is compatible with ODK. ODK Validate ensures that you have an OpenRosa compliant XForm, which prepares your form for deployment on ODK tools.

Installation

/img/validate/validate.png

vN.N.N refers to the current version of ODK Validate. The download page describes new features added to the current version.

Warning

If you couldn't open the jar file, try to use the command line:

java -jar path_to_jar

Tip

In Windows, you can select and drop the jar file to get the full path for the command above.

Usage

Tip

  • If you see errors, try to correct the source file, and try to validate the form again.
  • When you validate a form, the tool parses the XML script and checks it against ODK XForms specifications.

The following images illustrate two examples of:

  1. a valid form
  2. an invalid form

/img/validate/validform.png

/img/validate/invalidform.png

Note

ODK has a few additional restrictions that may not be tested by this tool. In particular, a form id must be defined for the form to work in Aggregate.