Data-bound switch

A data-bound switch is not unlike an xforms:switch:

  • Except that the current case is not driven by the xforms:toggle action.
  • Instead, you bind the component to a node, and the current case will be the one that has an id equal to the value of that node.

For instance:

<fr:databound-switch ref="section">
    <xforms:case id="search">
    <xforms:case id="results">