Form Builder: How do I access the currently selected item in a single list box?
Posted by SparkyII on
URL: https://discuss.orbeon.com/Form-Builder-How-do-I-access-the-currently-selected-item-in-a-single-list-box-tp3251401.html
Hi, folks.
I was wondering how to access the currently selected value of an item in a single list box (slbPatients) so that I can copy the value to a single line text(txtTest). I've tried:
<xforms:action ev:event="xforms-select" ev:observer="slbPatients-control" >
<xforms:setvalue ref="//form/select/txtTest" value="//form/select/slbPatients/item"/>
</xforms:action>
But without any success. If I use another single line text in the value field, there isn't a problem - I'm just unsure about how to form the correct xpath statement to access the values stored in the single list box.
Many thanks,
Sparks