The xforms-out-of-range event
Release 2.0 - ...
Dispatched in response to: the value of an instance data node has changed such that the value can not be represented by the form control.
Event Properties
| Event Properties | Value / Description |
|---|---|
| Target | Core Form Controls |
| Bubbles | Yes |
| Cancelable | No |
| Context Info | None |
The default action for this event results in the following:
- None, notification event only.
This event is dispatched whenever the value of an instance data node can not be represented given the constraints specified on a form control.
Example
| XML |
|
|---|---|
<xforms:trigger> <xforms:label>In Range</xforms:label> <xforms:setvalue ref="/car/quantity" ev:event="DOMActivate">-5</xforms:setvalue> </xforms:trigger> <xforms:range ref="/car/quantity" start="0" end="10" step="1"> <xforms:label>Number of cars: </xforms:label> <xforms:message ev:event="xforms-out-of-range" level="modal">xforms-out-of-range</xforms:message> </xforms:range> |
|
Specification
Link to the XForms specification: the xforms-out-of-range event.