The xforms-delete event

Release 2.0 - ...

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

Event Properties

Event Properties Value / Description
Target instance
Bubbles Yes
Cancelable No
Context Info
  • deleted-nodes (nodeset) : The instance data node or nodes deleted.
  • delete-location (number) : The delete location as defined by the delete action, or NaN if there is no delete action.

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-delete">
   <xforms:message ev:event="xforms-delete" level="modal">xforms-delete</xforms:message>
   <xforms:setvalue model="description_catcher" ref="delete_description" value="event('delete-location')" />
   <xforms:setvalue model="description_catcher" ref="new_value" value="event('deleted-nodes')" />
</xforms:action>

Specification

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