The xforms-in-range event

Release 2.0 - ...

Dispatched in response to: the value of an instance data node has changed such that the value can now 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 that was not possible to represent given the constraints specified on a form control has changed such that the value can now be represented by the form control.

Example

XML CopyCode image Copy Code
<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>Range 1: </xforms:label>
   <xforms:message ev:event="xforms-in-range" level="modal">xforms-in-range</xforms:message>
</xforms:range>

Specification

Link to the XForms specification: the xforms-in-range event.