Identifies the first item in a repeat, group, or switch. This is the item that first receives the focus when the user tabs into a group, a particular case in a switch, or a new row in a repeat.
This option affects the tab order in the following ways:
<first>item reference</first>
Parameter | Type | Description |
---|---|---|
item reference | string | An XFDL reference to the first item in a row of a table or the first item in a pane. |
pane, table
The following example shows a table in which the first option contains a reference to the second item in the table row. In this case, when the user first tabs into the table, the focus skips the first cell in the table and goes to the second cell (product popup).
<table sid="itemsTable">
<first>Product</first>
<last>Qty</last>
<xforms:repeat nodeset="order/row">
<field sid="Qty">
<previous>Product</previous>
<xforms:input ref="qty">
<xforms:label></xforms:label>
</xforms:input>
</field>
<popup sid="Product">
<next>Qty</next>
<xforms:select1 appearance="minimal" ref="product">
<xforms:label>Choose product</xforms:label>
<xforms:item>
<xforms:label>Widget</xforms:label>
<xforms:value>widget</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label>Gadget</xforms:label>
<xforms:value>gadget</xforms:value>
</xforms:item>
</xforms:select1>
</popup>
<label sid="LineTotal">
<xforms:output ref="lineTotal"/>
</label>
</xforms:repeat>
</table>