XForms/Select1 Multi-Column

Motivation
You want to select one item from multiple column of items.

Method
To do this we must unselect all of the column not selected so that only one column has a value in the output.

Source Code
         Select1 Multi Column  Clear     <xf:insert nodeset="instance('log')/event" at="last" position="after"/> <xf:setvalue ref="instance('log')/event[last]" value="'clear'"/> </xf:action> </xf:trigger> <xf:trigger> <xf:label>refresh</xf:label> <xf:action ev:event="refresh"> <xf:setvalue ref="col-1" value="''"/> <xf:setvalue ref="col-2" value="''"/> <xf:setvalue ref="col-3" value="''"/> <xf:insert nodeset="instance('log')/event" at="last" position="after"/> <xf:setvalue ref="instance('log')/event[last]" value="'refresh'"/> </xf:action> </xf:trigger> <xf:output ref="cols"> <xf:label>Color selected: </xf:label> </xf:output> <xf:output ref="col-1"> <xf:label>Column 1: </xf:label> </xf:output> <xf:output ref="col-2"> <xf:label>Column 2: </xf:label> </xf:output> <xf:output ref="col-3"> <xf:label>Column 3: </xf:label> </xf:output> Event Log <xf:repeat id="results-repeat" nodeset="instance('log')/event"> <xf:output ref="."/> </xf:repeat>