Getting selected label of a select one spinner

I am a little stuck in displaying the selected label of a select one spinner item in another question that follows after selecting the item from the spinner. I can show the selected value of the selected item but I can't show the label of the spinner. For eg.

  <itext>
    <translation lang="eng">          
      <text id="/data/HVDC:label">
        <value>1.1.5 गा.वि.स</value>
      </text>
  <text id="/data/HVDC:option0">
        <value>वागेश्वरी</value>
      </text>
  <text id="/data/HVDC:option1">
        <value>बनकटवा</value>
      </text>

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

Bageswari Bankatawa

I want to show sth. like "In वागेश्वरी VDC, how many children...." in the next question when i select the first item from the spinner. I was wondering if this was possible. Please show me a direction of how to go about it.

You can use an expression in a label.

e.g.,

How many days in the last 12 months did
not work because of illness?

This can contain jr:itext() expressions and jr:choice-name() expressions.
The later is used to construct the label of a choice value.

See https://opendatakit.org/help/form-design/binding/

··· On Tue, Apr 7, 2015 at 9:40 PM, wrote:

I am a little stuck in displaying the selected label of a select one
spinner item in another question that follows after selecting the item from
the spinner. I can show the selected value of the selected item but I can't
show the label of the spinner. For eg.

  <itext>
    <translation lang="eng">
      <text id="/data/HVDC:label">
        <value>1.1.5 गा.वि.स</value>
      </text>
      <text id="/data/HVDC:option0">
        <value>वागेश्वरी</value>
      </text>
      <text id="/data/HVDC:option1">
        <value>बनकटवा</value>
      </text>

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

Bageswari Bankatawa

I want to show sth. like "In वागेश्वरी VDC, how many children...." in the
next question when i select the first item from the spinner. I was
wondering if this was possible. Please show me a direction of how to go
about it.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com