xforms-enabledAdded by IBM on October 10, 2012 | Version 1 (Original)
|Occurs when a data node that non-relevant (relevant = false) becomes relevant, or when a node that is relevant changes value and remains relevant.
This event is triggered on the XForms control bound to that node.
Available In xforms:input, xforms:output, xforms:range, xforms:secret, xforms:select, xforms:select1, xforms:submit, xforms:textarea, xforms:trigger, xforms:upload
Example This example shows a label item that displays the total for a purchase order. If the total is less than 100, then the data node becomes non-relevant. If the value is then changed to be greater than 100, the node becomes relevant again and the xforms-enabled event is triggered. In this case, the event triggers an xforms:message action that explains that the value is now acceptable.
The following bind sets the minimum value of the po/total node in the data model to be 100:
The following code defines the label that displays the total:
<xforms:bind nodeset="po/total" relevant=". < 100"/>
level="modal">The value is acceptable.</xforms:message>
- The order in which user interface events are processed is indeterminate. This means you cannot rely on them processing in a particular order.