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.
- You need to have java.
- Download ODK Validate tool from (:file:`ODK Validate vN.N.N.jar` is a Java ARchive),it doesn't require installation.
- To run the tool, just click on ODK Validate vN.N.N.jar, you will see the following image:
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.
- Build your ODK form using either ODK Build or XLSForm.
- Convert the form into XML format, and save it to your local machine.
- Open ODk Validate tool and from :guilabel:`choose file`, select your XML form.
- The form will be validated automatically at the first time, and you can check if any error occurs.
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:
- a valid form
- an invalid form
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.