somkiattha / opendatakit

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

Getting selected label of a select one spinner #1128

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've a single select spinner sth like this

<select1 appearance="minimal" ref="/data/HVDC">
          <label ref="jr:itext('/data/HVDC:label')"/>
  <item>
  <label ref="jr:itext('/data/HVDC:option0')"/>
    <value>Bageswari</value>
  </item>
  <item>
  <label ref="jr:itext('/data/HVDC:option1')"/>
    <value>Bankatawa</value>
  </item>  
</select1>

In the next following question, I would like to have the label of the selected 
item. I can get the value, alright but was wondering if it was possible to get 
the label of the selected option item and not the value

Original issue reported on code.google.com by chaya...@ptas.com.np on 7 Apr 2015 at 6:41