Closed hallahan closed 9 years ago
It is working fine in ODK Collect, OpenMapKit, and shows up properly in the API and on http://zebra.ona.io
I am using this form:
<?xml version="1.0" encoding="utf-8"?> <h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <h:head> <h:title>osm_repeat2</h:title> <model> <instance> <osm_repeat id="osm_repeat2" version="201502191213"> <formhub> <uuid/> </formhub> <photo/> <osm_road/> <osm_building/> <fav_color/> <demo_repeat jr:template=""> <osm_road_repeat/> </demo_repeat> <meta> <instanceID/> </meta> </osm_repeat> </instance> <bind nodeset="/osm_repeat/photo" type="binary"/> <bind nodeset="/osm_repeat/osm_road" type="binary"/> <bind nodeset="/osm_repeat/osm_building" type="binary"/> <bind nodeset="/osm_repeat/fav_color" type="select1"/> <bind nodeset="/osm_repeat/demo_repeat/osm_road_repeat" type="binary"/> <bind calculate="concat('uuid:', uuid())" nodeset="/osm_repeat/meta/instanceID" readonly="true()" type="string"/> <bind calculate="'61becde911904d549e6c61052edca618'" nodeset="/osm_repeat/formhub/uuid" type="string"/> </model> </h:head> <h:body> <upload mediatype="image/*" ref="/osm_repeat/photo"> <label>Take a picture of something.</label> <hint>We don't care what it is.</hint> </upload> <upload mediatype="osm/*" ref="/osm_repeat/osm_road"> <label>Road</label> <hint>Tag the road in front of the building.</hint> </upload> <upload mediatype="osm/*" ref="/osm_repeat/osm_building"> <label>Building</label> <hint>Tag attributes about this building.</hint> <tag key="name"> <label>Name</label> </tag> <tag key="name:fr"> <label>Nom en Francais</label> </tag> <tag key="addr:housenumber"> <label>House Number</label> </tag> <tag key="addr:street"> <label>Street Name</label> </tag> <tag key="addr:city"> <label>City</label> </tag> <tag key="addr:postcode"> <label>Zip Code</label> </tag> <tag key="building"> <label>Building</label> </tag> <tag key="amenity"> <label>Building Type</label> </tag> </upload> <select1 ref="/osm_repeat/fav_color"> <label>What is your favourite color?</label> <hint>You must pick one of our choices.</hint> <item> <label>red</label> <value>red</value> </item> <item> <label>brown</label> <value>brown</value> </item> <item> <label>green</label> <value>green</value> </item> </select1> <group ref="/osm_repeat/demo_repeat"> <label/> <repeat nodeset="/osm_repeat/demo_repeat"> <upload mediatype="osm/*" ref="/osm_repeat/demo_repeat/osm_road_repeat"> <label>Road2</label> <hint>Tag the road in front of the building.</hint> <tag key="name"> <label>Name</label> </tag> </upload> </repeat> </group> </h:body> </h:html>
It is working fine in ODK Collect, OpenMapKit, and shows up properly in the API and on http://zebra.ona.io
I am using this form: