The xforms-insert event

Release 2.0 - ...

Dispatched in response to: Successful insertion of one or more nodes by an XForms insert action.

Event Properties

Event Properties Value / Description
Target instance
Bubbles Yes
Cancelable No
Context Info
  • inserted-nodes (nodeset) : The instance data node or nodes inserted.
  • origin-nodes (nodeset) : The instance data nodes referenced by the insert action's origin attribute if present, or the empty nodeset if not present.
  • insert-location-node (nodeset) : The insert location node as defined by the insert action.
  • position (string) : The insert position, before or after.

The default action for this event results in the following:

  • None, notification event only.

Example

XML CopyCode image Copy Code
<xforms:action ev:event="xforms-insert">
   <xforms:message ev:event="xforms-insert" level="modal">xforms-insert</xforms:message>
   <xforms:setvalue model="description_catcher" ref="insert_description" value="event('position')"/>
   <xforms:setvalue model="description_catcher" ref="new_value" value="event('inserted-nodes')"/>
</xforms:action>

Specification

Link to the XForms specification: the xforms-insert event.