sandy23690 / purcforms

Automatically exported from code.google.com/p/purcforms
0 stars 0 forks source link

ODK is unable to render the GPS, Audio, Video and Image fields #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following lines are generated by purforms for GPS

<xf:bind id="q1" nodeset="/new_form1/q1" format="gps" type="xsd:string">

The correct format should be 

<xf:bind id="q1" nodeset="/new_form1/q1" format="gps" type="geopoint">

regarding audio, video and image fields, the following lines of code fail to 
render the buttons to capture audio, video and image

<xf:input bind="q1">
 <xf:label>Capture image</xf:label>
</xf:input>

<xf:input bind="q2">
 <xf:label>Audio</xf:label>
</xf:input>

<xf:input bind="q3">
 <xf:label>Capture Video</xf:label>
</xf:input>

The correct setting would be

<xf:upload bind="q1">
 <xf:label>Capture image</xf:label>
</xf:upload>

<xf:upload bind="q2">
 <xf:label>Audio</xf:label>
</xf:upload>

<xf:upload bind="q3">
 <xf:label>Capture Video</xf:label>
</xf:upload>

Thus <xf:input> should be set to <xf:upload> instead.

Purforms should be intelligent enough to make the above changes for audio, 
video and image capture.

Original issue reported on code.google.com by capi...@gmail.com on 16 Jun 2010 at 10:17

GoogleCodeExporter commented 9 years ago
Image, Video, Audio and GPS are now fixed on the trunk.
For GPS, you will need to have a hidden div, in the html host file, with an id 
of gpsTypeName
The value should then be the type for GPS. For the case of ODK, the should be 
is geopoint

Original comment by kayiwadaniel on 20 Jun 2010 at 6:02