"choices" element inside a select?

Hi,

According to the XForms specification:

""
The choices Element
This element is used within selection form controls to group available
choices. This provides the same functionality as element optgroup in HTML.
""

I thought this meant that I could use it in a tag like this:

... ... ... ... ... ...

However, this does not work. ODK Collect gives me the error: "select has
no choices".

What am I missing?

Thanks
m.

odk implements javarosa's subset of xforms. that subset doesn't have
the choices tag.

xform spec: https://bitbucket.org/javarosa/javarosa/wiki/xform
xform tutorial: https://bitbucket.org/javarosa/javarosa/wiki/buildxforms
sample forms: http://code.google.com/p/opendatakit/source/browse/?repo=forms
xform design tips:
http://code.google.com/p/opendatakit/wiki/XFormDesignGuidelines

ยทยทยท On Tue, Oct 11, 2011 at 04:02, Matteo Sisti Sette wrote: > Hi, > > According to the XForms specification: > > "" > The choices Element > This element is used within selection form controls to group available > choices. This provides the same functionality as element optgroup in HTML. > "" > > I thought this meant that I could use it in a tag like this: > > > > > > ... > ... > ... > > > ... > ... > ... > > > > > However, this does not work. ODK Collect gives me the error: "select has no > choices". > > What am I missing? > > Thanks > m. > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >